    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background: #f8f9fa;
            color: #212529;
            font-size: 15px;
            line-height: 1.5;
        }

        /* Navigation */
        .nav-header {
            background: white;
            border-bottom: 1px solid #dee2e6;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
        }

        .nav-brand {
            font-size: 20px;
            font-weight: 600;
            color: #212529;
        }

        .nav-tabs {
            display: flex;
            gap: 8px;
        }

        .nav-tab {
            padding: 8px 16px;
            border: none;
            background: transparent;
            color: #6c757d;
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
            border-radius: 6px;
            transition: all 0.2s;
        }

        .nav-tab:hover {
            background: #f8f9fa;
            color: #212529;
        }

        .nav-tab.active {
            background: #e7f3ff;
            color: #0066cc;
        }

        .nav-actions {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .nav-logout {
            padding: 8px 16px;
            border: 1px solid #dee2e6;
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            color: #6c757d;
        }

        /* Mobile Bottom Tab Bar */
        .mobile-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: white;
            border-top: 1px solid #dee2e6;
            padding: 8px 0;
            z-index: 100;
        }

        .mobile-nav-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 4px;
        }

        .mobile-nav-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px;
            border: none;
            background: transparent;
            color: #6c757d;
            font-size: 11px;
            cursor: pointer;
        }

        .mobile-nav-btn.active {
            color: #0066cc;
        }

        .mobile-nav-icon {
            font-size: 20px;
        }

        /* Tab Content */
        .tab-page {
            display: none;
        }

        .tab-page.active {
            display: block;
        }

        /* Container */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 24px;
        }

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

        .page-header-text {
            flex: 1;
        }

        .page-title {
            font-size: 28px;
            font-weight: 600;
            color: #212529;
            margin-bottom: 8px;
        }

        .page-subtitle {
            font-size: 15px;
            color: #6c757d;
        }

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

        /* Search Bar */
        .search-bar {
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 32px;
            margin-bottom: 32px;
        }

        .search-input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #dee2e6;
            border-radius: 6px;
            font-size: 15px;
            transition: border-color 0.2s;
        }

        .search-input:focus {
            outline: none;
            border-color: #0066cc;
        }

        /* Section */
        .section {
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 24px;
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .section-title {
            font-size: 18px;
            font-weight: 600;
            color: #212529;
        }

        .section-count {
            background: #e7f3ff;
            color: #0066cc;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
            margin-left: 8px;
        }

        .view-all-link {
            color: #0066cc;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
        }

        .view-all-link:hover {
            text-decoration: underline;
        }

        /* Table */
        .table {
            width: 100%;
            border-collapse: collapse;
        }

        .table th {
            text-align: left;
            padding: 12px 16px;
            background: #f8f9fa;
            font-weight: 600;
            font-size: 13px;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 2px solid #dee2e6;
        }

        .table td {
            padding: 16px;
            border-bottom: 1px solid #f1f3f5;
        }

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

        .table tr:hover {
            background: #f8f9fa;
        }

        .table-customer-name {
            font-weight: 600;
            color: #0066cc;
            cursor: pointer;
        }

        .table-customer-name:hover {
            text-decoration: underline;
        }

        .table-amount {
            font-weight: 600;
            font-size: 16px;
        }

        /* Status Badges */
        .badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .badge-overdue {
            background: #fee;
            color: #c00;
        }

        .badge-pending {
            background: #fff3cd;
            color: #856404;
        }

        .badge-paid {
            background: #d4edda;
            color: #155724;
        }

        .badge-new {
            background: #e7f3ff;
            color: #0066cc;
        }

        .badge-contacted {
            background: #e9ecef;
            color: #495057;
        }

        .badge-converted {
            background: #d4edda;
            color: #155724;
        }

        .badge-sent {
            background: #e7f3ff;
            color: #0066cc;
        }

        .badge-completed {
            background: #d4edda;
            color: #155724;
        }

        .badge-scheduled {
            background: #fff3cd;
            color: #856404;
        }

        .badge-draft {
            background: #e9ecef;
            color: #495057;
        }

        .badge-accepted {
            background: #d4edda;
            color: #155724;
        }

        .badge-invoiced {
            background: #d4edda;
            color: #155724;
        }

        /* Buttons */
        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 6px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
        }

        .btn-primary {
            background: #0066cc;
            color: white;
        }

        .btn-primary:hover {
            background: #0052a3;
        }

        .btn-secondary {
            background: white;
            color: #6c757d;
            border: 1px solid #dee2e6;
        }

        .btn-secondary:hover {
            background: #f8f9fa;
        }

        .btn-success {
            background: #28a745;
            color: white;
        }

        .btn-success:hover {
            background: #218838;
        }

        .btn-danger {
            background: #dc3545;
            color: white;
        }

        .btn-danger:hover {
            background: #c82333;
        }

        .btn-sm {
            padding: 6px 12px;
            font-size: 13px;
        }

        .btn-lg {
            padding: 12px 24px;
            font-size: 16px;
        }

        .btn-group {
            display: flex;
            gap: 8px;
        }

        /* Empty State */
        .empty-state {
            text-align: center;
            padding: 48px 24px;
            color: #6c757d;
        }

        .empty-state-icon {
            font-size: 48px;
            margin-bottom: 16px;
            opacity: 0.3;
        }

        .empty-state-text {
            font-size: 15px;
        }

        /* Date/Time */
        .date-text {
            color: #6c757d;
            font-size: 14px;
        }

        .time-text {
            color: #6c757d;
            font-size: 14px;
        }

        /* Pipeline Arrow */
        .pipeline-arrow {
            color: #28a745;
            margin: 0 8px;
        }

        .pipeline-link {
            color: #0066cc;
            text-decoration: none;
            font-weight: 500;
        }

        .pipeline-link:hover {
            text-decoration: underline;
        }

        /* Customer Detail Modal */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            padding: 24px;
            overflow-y: auto;
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-content {
            background: white;
            border-radius: 12px;
            max-width: 900px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .modal-header {
            padding: 24px;
            border-bottom: 1px solid #dee2e6;
        }

        .modal-customer-name {
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .modal-customer-contact {
            color: #6c757d;
            font-size: 14px;
        }

        .modal-actions {
            margin-top: 16px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .modal-body {
            padding: 24px;
        }

        .modal-section {
            margin-bottom: 32px;
        }

        .modal-section-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
            padding-bottom: 8px;
            border-bottom: 2px solid #f1f3f5;
        }

        .close-modal {
            position: absolute;
            top: 24px;
            right: 24px;
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #6c757d;
            line-height: 1;
        }

        .close-modal:hover {
            color: #212529;
        }

        /* Form Elements */
        .form-group {
            margin-bottom: 20px;
        }

        .form-label {
            display: block;
            font-weight: 600;
            margin-bottom: 8px;
            color: #212529;
        }

        .form-input,
        .form-select,
        .form-textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            font-size: 15px;
            font-family: inherit;
        }

        .form-input:focus,
        .form-select:focus,
        .form-textarea:focus {
            outline: none;
            border-color: #0066cc;
        }

        .form-textarea {
            resize: vertical;
            min-height: 120px;
        }

        /* SQL Query Specific */
        .sql-editor {
            width: 100%;
            background: #282c34;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            padding: 16px;
            font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
            font-size: 14px;
            color: #abb2bf;
            min-height: 200px;
            resize: vertical;
            box-sizing: border-box;
        }

        .sql-results {
            margin-top: 24px;
        }

        .sql-results-header {
            background: #f8f9fa;
            padding: 12px 16px;
            border: 1px solid #dee2e6;
            border-bottom: none;
            border-radius: 6px 6px 0 0;
            font-weight: 600;
            font-size: 14px;
        }

        .sql-results-body {
            border: 1px solid #dee2e6;
            border-radius: 0 0 6px 6px;
            overflow-x: auto;
        }

        /* Settings Specific */
        .settings-section {
            background: white;
            border: 1px solid #dee2e6;
            border-radius: 8px;
            padding: 24px;
            margin-bottom: 24px;
        }

        .settings-section h3 {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .settings-section p {
            color: #6c757d;
            margin-bottom: 20px;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .nav-tabs {
                display: none;
            }

            .mobile-nav {
                display: block;
            }

            .container {
                padding: 16px;
                padding-bottom: 80px;
            }

            .page-title {
                font-size: 24px;
            }

            .page-header {
                flex-direction: column;
                gap: 16px;
            }

            .page-actions {
                width: 100%;
            }

            .page-actions .btn {
                flex: 1;
            }

            .section {
                padding: 16px;
            }

            .search-bar {
                padding: 16px;
            }

            .table, .table tbody, .table tr, .table td {
                display: block;
            }

            .table thead {
                display: none;
            }

            .table tr {
                margin-bottom: 16px;
                border: 1px solid #dee2e6;
                border-radius: 8px;
                padding: 12px;
            }

            .table td {
                padding: 8px 0;
                border: none;
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .table td::before {
                content: attr(data-label);
                font-weight: 600;
                color: #6c757d;
                font-size: 12px;
                text-transform: uppercase;
                margin-right: 16px;
            }

            .btn-group {
                flex-direction: column;
                width: 100%;
            }

            .btn-group .btn {
                width: 100%;
            }

            .modal-content {
                margin: 0;
                max-height: 100vh;
