/* ═══════════════════════════════════════════════════════════════════════════
   MODERN CUSTOMER PORTAL - Complete UI/UX Redesign
   Clean, Professional, Modern Enterprise B2B Design System
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Primary Brand Accent (Matches Enterprise DTech Blue) */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-lighter: #dbeafe;
    --primary-soft: #eff6ff;
    
    /* Secondary & Neutrals */
    --secondary-color: #0f172a;
    --secondary-dark: #020617;
    
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-blue: #2563eb;
    
    /* Neutrals */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    
    /* Spacing */
    --navbar-height: 64px;
    --sidebar-width: 260px;
}

/* ══════════════════════════════════════════════════════════════════════════
   Base Styles
   ══════════════════════════════════════════════════════════════════════════ */

.modern-customer-portal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* ══════════════════════════════════════════════════════════════════════════
   Modern Navbar
   ══════════════════════════════════════════════════════════════════════════ */

.modern-navbar {
    height: var(--navbar-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: var(--shadow-sm);
}

.modern-menu-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.modern-menu-toggle:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

/* Brand */
.modern-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.modern-brand:hover {
    transform: translateY(-1px);
}

.modern-logo {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

.modern-brand-text {
    line-height: 1.2;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Quick Action Buttons */
.modern-quick-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    white-space: nowrap;
}

.modern-quick-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.modern-quick-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

/* Blue surfaces must use high-contrast text: white text/content, NEVER black or blue */
.bg-primary,
.bg-primary *,
.bg-info,
.bg-info *,
.btn-primary,
.btn-primary *,
.btn-info,
.btn-info *,
.badge.bg-primary,
.badge.bg-primary *,
.badge.bg-info,
.badge.bg-info *,
.badge-primary,
.badge-primary *,
.badge-info,
.badge-info *,
.bg-primary-subtle,
.bg-primary-subtle *,
.bg-info-subtle,
.bg-info-subtle *,
.badge-primary-subtle,
.badge-primary-subtle *,
.badge-info-subtle,
.badge-info-subtle *,
.ims-badge-primary,
.ims-badge-primary *,
.ims-badge-info,
.ims-badge-info *,
.alert-primary,
.alert-primary *,
.alert-info,
.alert-info *,
.gradient-bg-blue,
.gradient-bg-blue *,
.bg-primary.text-dark,
.bg-primary.text-dark *,
.bg-primary.text-black,
.bg-primary.text-black *,
.bg-primary.text-primary,
.bg-primary.text-primary *,
.bg-primary.text-info,
.bg-primary.text-info *,
.bg-primary.text-muted,
.bg-primary.text-muted *,
.bg-primary.text-secondary,
.bg-primary.text-secondary *,
.bg-info.text-dark,
.bg-info.text-dark *,
.bg-info.text-black,
.bg-info.text-black *,
.bg-info.text-primary,
.bg-info.text-primary *,
.bg-info.text-info,
.bg-info.text-info *,
.bg-info.text-muted,
.bg-info.text-muted *,
.bg-info.text-secondary,
.bg-info.text-secondary * {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Ensure any blue element has solid background with full opacity so white text is crystal clear */
.badge.bg-primary,
.badge.bg-info,
.badge[class*="bg-primary"],
.badge[class*="bg-info"],
.cust-kpi-icon.bg-primary,
.cust-kpi-icon.bg-info,
.cust-kpi-icon[class*="bg-primary"],
.cust-kpi-icon[class*="bg-info"],
.bg-primary.bg-opacity-10,
.bg-primary.bg-opacity-20 {
    --bs-bg-opacity: 1 !important;
    background-color: var(--primary-color, #2563eb) !important;
    border-color: var(--primary-color, #2563eb) !important;
    color: #ffffff !important;
}

.bg-info.bg-opacity-10,
.bg-info.bg-opacity-20,
.badge.bg-info,
.badge[class*="bg-info"],
.cust-kpi-icon.bg-info {
    --bs-bg-opacity: 1 !important;
    background-color: var(--accent-blue, #3b82f6) !important;
    border-color: var(--accent-blue, #3b82f6) !important;
    color: #ffffff !important;
}

.table-primary,
.table-primary > th,
.table-primary > td {
    background-color: var(--primary-color, #2563eb) !important;
    color: #ffffff !important;
}

.table-primary > th *,
.table-primary > td * {
    color: #ffffff !important;
}

.modern-quick-btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.modern-quick-btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-1px);
    color: var(--text-primary);
}

/* Icon Button */
.modern-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-secondary);
    border-radius: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    position: relative;
    transition: all 0.2s ease;
}

.modern-icon-btn:hover {
    background: var(--border-color);
    transform: scale(1.05);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

/* User Button */
.modern-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px 6px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.modern-user-btn:hover {
    background: var(--border-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.modern-avatar,
.modern-avatar-sm,
.modern-avatar-lg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.modern-avatar {
    width: 38px;
    height: 38px;
    font-size: 0.875rem;
}

.modern-avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
}

.modern-avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    margin: 0 auto;
}

.modern-user-info {
    text-align: left;
    line-height: 1.2;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dropdown-icon {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.modern-user-btn[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.modern-dropdown {
    min-width: 280px;
    padding: 8px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    margin-top: 8px;
}

.modern-dropdown .dropdown-header {
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
}

.modern-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.modern-dropdown .dropdown-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modern-dropdown .dropdown-item i {
    width: 20px;
}

/* ══════════════════════════════════════════════════════════════════════════
   Modern Sidebar
   ══════════════════════════════════════════════════════════════════════════ */

.modern-layout-body {
    display: flex;
    height: calc(100vh - var(--navbar-height));
    position: relative;
}

.modern-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease;
    position: sticky;
    top: var(--navbar-height);
    height: calc(100vh - var(--navbar-height));
    flex-shrink: 0;
}

/* Navigation */
.modern-nav {
    padding: 20px 16px;
    flex: 1;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 8px 12px;
    margin-bottom: 4px;
}

.modern-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    position: relative;
}

.modern-nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
    transition: transform 0.2s ease;
}

.modern-nav-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: translateX(4px);
}

.modern-nav-link:hover i {
    transform: scale(1.1);
}

.modern-nav-link.active {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: var(--primary-color);
    font-weight: 600;
}

.modern-nav-link.active i {
    color: var(--primary-color);
}

.modern-nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.nav-badge {
    margin-left: auto;
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
}

/* Sidebar Footer */
.modern-sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Overlay */
.modern-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1025;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Sidebar */
@media (max-width: 991.98px) {
    .modern-sidebar {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        height: calc(100vh - var(--navbar-height));
        transform: translateX(-100%);
        z-index: 1026;
        box-shadow: var(--shadow-xl);
    }
    
    .modern-sidebar.show {
        transform: translateX(0);
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   Main Content Area
   ══════════════════════════════════════════════════════════════════════════ */

.modern-main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    min-width: 0;
    background: var(--bg-tertiary);
}

@media (max-width: 767.98px) {
    .modern-main-content {
        padding: 16px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   Cards & Components
   ══════════════════════════════════════════════════════════════════════════ */

.modern-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.modern-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.modern-card-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* Stat Cards */
.modern-stat-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.modern-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-change {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}

.stat-change.positive {
    background: #dcfce7;
    color: #059669;
}

.stat-change.negative {
    background: #fee2e2;
    color: #dc2626;
}

/* ══════════════════════════════════════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════════════════════════════════════ */

.modern-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.modern-btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.modern-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.modern-btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.modern-btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

.modern-btn-outline {
    background: white;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.modern-btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════════════════════════════
   Utilities
   ══════════════════════════════════════════════════════════════════════════ */

.modern-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.modern-badge-primary {
    background: #eff6ff;
    color: var(--primary-color);
}

.modern-badge-success {
    background: #dcfce7;
    color: #059669;
}

.modern-badge-warning {
    background: #fef3c7;
    color: #d97706;
}

.modern-badge-danger {
    background: #fee2e2;
    color: #dc2626;
}

/* ══════════════════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    :root {
        --navbar-height: 64px;
    }
    
    .modern-logo {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .brand-name {
        font-size: 1.125rem;
    }
    
    .brand-tagline {
        font-size: 0.6875rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   Animations
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-dropdown {
    animation: slideDown 0.2s ease;
}

/* ══════════════════════════════════════════════════════════════════════════
   ENTERPRISE B2B CUSTOMER PORTAL ENHANCEMENTS
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Modern Vibrant KPI Stat Cards (Matching Admin Dashboard) ──────────── */
.cust-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.cust-kpi-card {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 1.15rem 1rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.cust-kpi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(23, 43, 77, 0.1);
}

.cust-kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-bottom: 0.85rem;
}

.cust-kpi-info {
    display: flex;
    flex-direction: column;
}

.cust-kpi-val {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.cust-kpi-label {
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.15rem;
}

/* Green Gradient Card (Total Quotations) */
.cust-kpi-card.gradient-green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.cust-kpi-card.gradient-green .cust-kpi-icon {
    background: rgba(5, 95, 70, 0.15);
    color: #065f46;
}

.cust-kpi-card.gradient-green .cust-kpi-val {
    color: #065f46;
}

.cust-kpi-card.gradient-green .cust-kpi-label {
    color: #047857;
}

/* Responsive KPI Grid */
@media (max-width: 1200px) {
    .cust-kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .cust-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .cust-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
    
    .cust-kpi-card {
        padding: 1rem 0.85rem;
        border-radius: 10px;
    }
    
    .cust-kpi-icon {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
        margin-bottom: 0.65rem;
    }
    
    .cust-kpi-val {
        font-size: 1.5rem;
    }
    
    .cust-kpi-label {
        font-size: 0.75rem;
    }
}

/* Blue Gradient Card (In Transit) */
.cust-kpi-card.gradient-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.cust-kpi-card.gradient-blue .cust-kpi-icon {
    background: rgba(37, 99, 235, 0.15);
    color: #1e40af;
}

.cust-kpi-card.gradient-blue .cust-kpi-val {
    color: #1e40af;
}

.cust-kpi-card.gradient-blue .cust-kpi-label {
    color: #2563eb;
}

/* Purple Gradient Card (Documents) */
.cust-kpi-card.gradient-purple {
    background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
}

.cust-kpi-card.gradient-purple .cust-kpi-icon {
    background: rgba(126, 34, 206, 0.15);
    color: #7e22ce;
}

.cust-kpi-card.gradient-purple .cust-kpi-val {
    color: #7e22ce;
}

.cust-kpi-card.gradient-purple .cust-kpi-label {
    color: #9333ea;
}

/* Orange Gradient Card (Conversion) */
.cust-kpi-card.gradient-orange {
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%);
}

.cust-kpi-card.gradient-orange .cust-kpi-icon {
    background: rgba(154, 52, 18, 0.15);
    color: #9a3412;
}

.cust-kpi-card.gradient-orange .cust-kpi-val {
    color: #9a3412;
}

.cust-kpi-card.gradient-orange .cust-kpi-label {
    color: #c2410c;
}

/* Icon Background Helpers for Gradient Cards */
.icon-bg-green {
    background: rgba(5, 95, 70, 0.15);
    color: #065f46;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.icon-bg-yellow {
    background: rgba(120, 53, 15, 0.15);
    color: #78350f;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.icon-bg-orange {
    background: rgba(154, 52, 18, 0.15);
    color: #9a3412;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.icon-bg-purple {
    background: rgba(126, 34, 206, 0.15);
    color: #7e22ce;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.icon-bg-blue {
    background: rgba(37, 99, 235, 0.15);
    color: #1e40af;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.icon-bg-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Modern Badge Styles Matching Admin Dashboard */
.badge-green {
    background: #dcfce7;
    color: #065f46;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-yellow {
    background: #fef3c7;
    color: #78350f;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-orange {
    background: #ffedd5;
    color: #9a3412;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.badge-purple {
    background: #f3e8ff;
    color: #7e22ce;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
}

/* ── Clean Enterprise Segmented Navigation Tabs ─────────────────────────── */
.cust-tabs-container {
    background: #f1f5f9;
    padding: 0.3rem;
    border-radius: 10px;
    display: inline-flex;
    gap: 0.25rem;
    flex-wrap: wrap;
    border: 1px solid #e2e8f0;
}

.cust-tab-item {
    border: none;
    background: transparent;
    padding: 0.5rem 1.15rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #64748b;
    border-radius: 7px;
    transition: all 0.15s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    color: #64748b;
    text-decoration: none;
}

.cust-tab-item:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.5);
}

.cust-tab-item.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.cust-tab-count {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}

.cust-tab-item.active .cust-tab-count {
    background: #2563eb;
    color: #ffffff;
}

/* ── Enterprise Clean Filter Bar ────────────────────────────────────────── */
.cust-filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.85rem 1.15rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cust-search-input {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    color: #0f172a;
    transition: all 0.15s ease-in-out;
}

.cust-search-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cust-filter-pill {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: all 0.15s ease-in-out;
}

.cust-filter-pill:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.cust-filter-pill.active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

/* ── Modern B2B Data Tables ─────────────────────────────────────────────── */
.cust-table-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.cust-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.cust-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    border-top: none;
    white-space: nowrap;
}

.cust-table tbody tr {
    transition: background-color 0.12s ease-in-out;
}

.cust-table tbody tr:hover {
    background-color: #f8fafc;
}

.cust-table tbody td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    font-size: 0.875rem;
}

.cust-table tbody tr:last-child td {
    border-bottom: none;
}

/* ── Semantic Subtle Status Badges ──────────────────────────────────────── */
.badge-subtle-success {
    background-color: #ecfdf5 !important;
    color: #059669 !important;
    border: 1px solid #a7f3d0 !important;
    font-weight: 600;
}

.badge-subtle-warning {
    background-color: #fffbeb !important;
    color: #d97706 !important;
    border: 1px solid #fde68a !important;
    font-weight: 600;
}

.badge-subtle-danger {
    background-color: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
    font-weight: 600;
}

.badge-subtle-info {
    background-color: #eff6ff !important;
    color: #2563eb !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 600;
}

.badge-subtle-primary {
    background-color: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
    font-weight: 600;
}

.badge-subtle-secondary {
    background-color: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    font-weight: 600;
}

/* ── Standardized Action Buttons ─────────────────────────────────────────── */
.btn-action-primary {
    background-color: #2563eb !important;
    border: 1px solid #2563eb !important;
    color: #ffffff !important;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.38rem 0.85rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease-in-out;
}

.btn-action-primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-action-secondary {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.38rem 0.85rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s ease-in-out;
}

.btn-action-secondary:hover {
    background-color: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

/* ── Modern Empty State ─────────────────────────────────────────────────── */
.cust-empty-state {
    padding: 3.5rem 1.5rem;
    text-align: center;
    background: #ffffff;
    border-radius: 12px;
}

.cust-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* ── Customer Authentication ─────────────────────────────────────────────── */
.customer-login-page.ims-auth-page {
    --customer-blue: #2563eb;
    --customer-cyan: #2563eb;
    background:
        linear-gradient(rgba(8, 15, 31, 0.62), rgba(8, 15, 31, 0.62)),
        url('/hero.jpeg') center center / cover fixed !important;
}
.ims-login-panel {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    padding: 3rem;
}
.customer-login-page .customer-auth-container {
    max-width: 1180px;
    width: min(1180px, calc(100vw - 3rem));
    position: relative;
    z-index: 1;
}

.customer-login-page .customer-auth-card {
    background: rgba(15, 23, 42, 0.36) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 1rem !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35) !important;
}

.customer-login-page .customer-auth-brand-panel {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    padding: 3rem !important;
}

.customer-login-page.customer-auth-register .customer-auth-brand-panel {
    padding: 2.5rem !important;
}

.customer-login-page.customer-auth-register .customer-auth-form {
    padding: 2.5rem !important;
}

.customer-login-page.customer-auth-register .customer-auth-form .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.customer-login-page.customer-auth-register .customer-auth-form .form-control {
    height: auto;
    min-height: 42px;
    padding: 0.55rem 0.75rem;
    font-size: 0.875rem;
}

.customer-login-page.customer-auth-register .customer-auth-form textarea.form-control {
    min-height: 76px;
}

.customer-login-page.customer-auth-register .customer-auth-form .row {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 0.5rem;
    margin-bottom: 0.75rem !important;
}

.customer-login-page .customer-registration-progress {
    align-items: center;
    display: flex;
    gap: 0.65rem;
}

.customer-login-page .customer-registration-progress > div:not(.customer-registration-progress-line) {
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.4rem;
}

.customer-login-page .customer-registration-progress > div:not(.customer-registration-progress-line) > span:first-child {
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    display: inline-flex;
    height: 1.5rem;
    justify-content: center;
    width: 1.5rem;
}

.customer-login-page .customer-registration-progress > div.active {
    color: #fff;
}

.customer-login-page .customer-registration-progress > div.active > span:first-child,
.customer-login-page .customer-registration-progress > div.complete > span:first-child {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.customer-login-page .customer-registration-progress-line {
    background: rgba(255, 255, 255, 0.25);
    flex: 1 1 auto;
    height: 1px;
}

.customer-login-page .customer-registration-progress-line.complete {
    background: #60a5fa;
}

.customer-login-page .customer-auth-brand-icon {
    height: 60px;
    width: 60px;
}

.customer-login-page .customer-auth-eyebrow {
    display: block;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.customer-login-page .customer-auth-highlights > div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.customer-login-page .customer-auth-highlights > div > span:first-child {
    height: 32px;
    width: 32px;
    flex: 0 0 32px;
}

.customer-login-page .customer-auth-form {
    background: rgba(15, 23, 42, 0.2);
    color: #fff;
}

.customer-login-page .customer-auth-form .form-label,
.customer-login-page .customer-auth-form h2,
.customer-login-page .customer-auth-form .text-dark {
    color: #fff !important;
}

.customer-login-page .customer-auth-muted {
    color: rgba(255, 255, 255, 0.68) !important;
}

.customer-login-page .customer-auth-form-icon {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    height: 48px;
    width: 48px;
}

.customer-login-page .customer-auth-mode-switcher {
    background: rgba(15, 23, 42, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.16);
    max-width: 360px;
}

.customer-login-page .customer-auth-form .btn-primary {
    background: #0d6efd;
    border: 0;
    box-shadow: none;
    color: #fff;
}

.customer-login-page .customer-auth-form .input-group-text,
.customer-login-page .customer-auth-form .form-control,
.customer-login-page .customer-auth-form textarea {
    background-color: #f8fafc !important;
    border-color: #dbe3ee !important;
    color: #1e293b !important;
}

.customer-login-page .customer-auth-form .form-control:focus,
.customer-login-page .customer-auth-form textarea:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.2);
}

.customer-login-page .customer-auth-form .input-group .btn-outline-secondary {
    background-color: #f8fafc;
    border-color: #dbe3ee;
    color: #475569;
}

.customer-login-page .customer-auth-form .customer-auth-demo {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #fff;
}

.customer-login-page .customer-auth-form .customer-auth-demo .btn-outline-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.customer-login-page .customer-auth-form .border-top {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.customer-login-page .customer-auth-form a {
    color: #60a5fa;
}

@media (max-width: 991.98px) {
    .customer-login-page .customer-auth-brand-panel {
        min-height: 0;
        padding: 2rem !important;
    }

    .customer-login-page .customer-auth-form {
        padding: 2rem !important;
    }

    .customer-login-page .customer-auth-container {
        width: min(760px, calc(100vw - 2rem));
    }
}

@media (max-width: 575.98px) {
    .customer-login-page {
        align-items: flex-start !important;
        padding: 1rem 0.75rem !important;
    }

    .customer-login-page .customer-auth-brand-panel,
    .customer-login-page .customer-auth-form {
        padding: 1.4rem !important;
    }

    .customer-login-page .customer-auth-container {
        width: 100%;
    }

    .customer-login-page .customer-auth-brand-panel h1 {
        font-size: 1.4rem;
    }

    .customer-login-page .customer-auth-form .row > [class*="col-"] {
        width: 100%;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   Customer Analytics Dashboard - Modern Admin Style
   ══════════════════════════════════════════════════════════════════════════ */

.customer-analytics-modern {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 16px;
}

/* Chart Cards with Modern Styling */
.customer-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.customer-chart-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.customer-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 43, 77, 0.1);
}

.customer-chart-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.customer-chart-heading h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.customer-chart-heading p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.customer-chart-heading a {
    font-size: 0.875rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.customer-chart-heading a:hover {
    color: #1d4ed8;
}

.customer-chart-total {
    font-size: 0.875rem;
    font-weight: 700;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
}

.customer-chart-empty {
    text-align: center;
    color: #94a3b8;
    padding: 3rem 1rem;
    font-size: 0.9375rem;
}

/* Trend Chart Styling */
.customer-chart-trend {
    grid-column: span 1;
}

.customer-trend-chart {
    width: 100%;
    height: auto;
    margin: 1rem 0;
}

.customer-trend-chart line {
    stroke: #e2e8f0;
    stroke-width: 1;
}

.customer-trend-chart polyline {
    fill: none;
    stroke: #2563eb;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.customer-trend-chart circle {
    fill: #2563eb;
    stroke: white;
    stroke-width: 2;
    transition: r 0.2s ease;
}

.customer-trend-chart circle:hover {
    r: 7;
}

.customer-trend-axis-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.customer-trend-axis-labels span {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    flex: 1;
}

.customer-trend-axis-labels strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.125rem;
}

/* Status Row Styling */
.customer-status-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.customer-status-row:last-child {
    margin-bottom: 0;
}

.customer-status-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 140px;
    font-size: 0.875rem;
}

.customer-status-label span {
    color: #64748b;
}

.customer-status-label strong {
    font-weight: 700;
    color: #1e293b;
}

.customer-status-track {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.customer-status-track span {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* Status Colors */
.customer-status-pending {
    background: linear-gradient(90deg, #fef3c7 0%, #fde68a 100%);
}

.customer-status-approved {
    background: linear-gradient(90deg, #dcfce7 0%, #bbf7d0 100%);
}

.customer-status-converted {
    background: linear-gradient(90deg, #dbeafe 0%, #bfdbfe 100%);
}

.customer-status-closed {
    background: linear-gradient(90deg, #fee2e2 0%, #fecaca 100%);
}

.customer-status-other {
    background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 100%);
}

.customer-chart-footnote {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.875rem;
    color: #64748b;
}

.customer-delivery-summary {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 12px;
}

.customer-delivery-summary strong {
    font-size: 2rem;
    font-weight: 700;
    color: #1e40af;
}

.customer-delivery-summary span {
    font-size: 0.875rem;
    color: #2563eb;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .customer-analytics-modern {
        padding: 1rem;
    }

    .customer-analytics-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }

    .customer-chart-card {
        padding: 1.25rem;
    }

    .customer-chart-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .customer-status-label {
        min-width: 100px;
        font-size: 0.8125rem;
    }
}

/* ===================================================================
   CUSTOMER UI - FIXED ACTION COLUMN PATTERN
   Applied to all customer portal tables
   =================================================================== */

/* Sticky actions column for customer tables */
.cust-table .sticky-actions-column {
    background: #fff;
    position: sticky !important;
    left: auto !important;
    right: 0 !important;
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    z-index: 12;
    box-shadow: -2px 0 5px rgba(15, 23, 42, .08);
}

.cust-table thead .sticky-actions-column {
    z-index: 13;
}

.cust-table tbody tr:hover .sticky-actions-column {
    background: #f8fafc;
}

/* Dropdown actions for customer UI */
.cust-actions-dropdown {
    position: relative;
}

.cust-actions-dropdown summary {
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

.cust-actions-dropdown summary::-webkit-details-marker {
    display: none;
}

.cust-actions-dropdown summary:hover {
    background: #eef4ff;
    border-color: #b9ccef !important;
    color: #2457b8;
}

.cust-actions-dropdown-menu {
    background: #fff;
    border: 1px solid #e1e7ef;
    border-radius: 10px;
    min-width: 180px;
    padding: .35rem;
    position: absolute;
    right: 0;
    top: calc(100% + .35rem);
    z-index: 20;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .12);
}

.cust-actions-dropdown-menu button,
.cust-actions-dropdown-menu a {
    border: none;
    background: transparent;
    border-radius: 6px;
    color: #334155;
    display: block;
    font-size: 0.875rem;
    padding: .45rem .65rem;
    text-align: left;
    text-decoration: none;
    transition: background-color .15s ease;
    width: 100%;
}

.cust-actions-dropdown-menu button:hover,
.cust-actions-dropdown-menu a:hover {
    background: #f1f5f9;
    color: #1e40af;
}

.cust-actions-dropdown-menu button i,
.cust-actions-dropdown-menu a i {
    margin-right: .5rem;
    width: 1rem;
    display: inline-block;
}

.cust-actions-dropdown-menu .divider {
    border-top: 1px solid #e2e8f0;
    margin: .35rem 0;
}

/* Keep dropdown menus above table */
.cust-table-wrapper {
    overflow: visible;
    position: relative;
    z-index: 10;
}

.cust-table-wrapper .table-responsive {
    overflow-x: auto !important;
    overflow-y: visible;
    position: relative;
    z-index: 10;
}

.cust-table tbody tr {
    position: relative;
    z-index: 1;
}

.cust-table tbody tr:has(.cust-actions-dropdown[open]) {
    z-index: 100;
}

.cust-table tbody tr:has(.cust-actions-dropdown[open]) td {
    position: relative;
    z-index: 100;
}

.cust-table .cust-actions-dropdown[open] {
    position: relative;
    z-index: 1000;
}

/* Mobile responsiveness for customer UI */
@media (max-width: 767.98px) {
    .cust-table .sticky-actions-column {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .cust-table .sticky-actions-column {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE QUOTE CARDS - Customer Portal Quotations
   ══════════════════════════════════════════════════════════════════════════ */

.cust-quotes-card-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cust-quote-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.cust-quote-card:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.cust-quote-card-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cust-quote-card-body {
    padding: 1rem;
}

.cust-quote-card-actions {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Ensure consistent spacing for mobile cards */
@media (max-width: 767.98px) {
    .cust-quotes-card-grid {
        gap: 0.875rem;
    }
    
    .cust-quote-card {
        border-radius: 10px;
    }
    
    .cust-quote-card-header,
    .cust-quote-card-body,
    .cust-quote-card-actions {
        padding: 0.875rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE QUOTATION CARDS
   ══════════════════════════════════════════════════════════════════════════ */

.cust-quotation-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cust-quotation-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease-in-out;
}

.cust-quotation-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.cust-quotation-card-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cust-quotation-card-body {
    padding: 1rem;
}

.cust-quotation-card-footer {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .cust-quotation-cards {
        gap: 0.875rem;
    }
    
    .cust-quotation-card {
        border-radius: 10px;
    }
    
    .cust-quotation-card-header,
    .cust-quotation-card-body,
    .cust-quotation-card-footer {
        padding: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .cust-quotation-cards {
        gap: 0.75rem;
    }
    
    .cust-quotation-card-header,
    .cust-quotation-card-body,
    .cust-quotation-card-footer {
        padding: 0.75rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE DELIVERY CARDS
   ══════════════════════════════════════════════════════════════════════════ */

.cust-delivery-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cust-delivery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.cust-delivery-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.cust-delivery-card-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cust-delivery-card-body {
    padding: 1rem;
}

.cust-delivery-card-footer {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Mobile responsive adjustments for delivery cards */
@media (max-width: 767.98px) {
    .cust-delivery-cards {
        gap: 0.875rem;
    }
    
    .cust-delivery-card {
        border-radius: 10px;
    }
    
    .cust-delivery-card-header,
    .cust-delivery-card-body,
    .cust-delivery-card-footer {
        padding: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .cust-delivery-cards {
        gap: 0.75rem;
    }
    
    .cust-delivery-card-header,
    .cust-delivery-card-body,
    .cust-delivery-card-footer {
        padding: 0.75rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE DOCUMENT CARDS
   ══════════════════════════════════════════════════════════════════════════ */

.cust-document-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cust-document-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease-in-out;
}

.cust-document-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.cust-document-card-header {
    padding: 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.cust-document-card-body {
    padding: 1rem;
}

.cust-document-card-footer {
    padding: 1rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

/* Mobile responsive adjustments for document cards */
@media (max-width: 767.98px) {
    .cust-document-cards {
        gap: 0.875rem;
    }
    
    .cust-document-card {
        border-radius: 10px;
    }
    
    .cust-document-card-header,
    .cust-document-card-body,
    .cust-document-card-footer {
        padding: 0.875rem;
    }
}

@media (max-width: 575.98px) {
    .cust-document-cards {
        gap: 0.75rem;
    }
    
    .cust-document-card-header,
    .cust-document-card-body,
    .cust-document-card-footer {
        padding: 0.75rem;
    }
}
