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

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f5f5f5;
            color: #333;
            margin: 0;
            padding: 0;
        }

        /* Professional Header Styles */
        .main-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
            position: sticky;
            top: 0;
            z-index: 1000;
            border-bottom: 3px solid #5a6fd8;
        }

        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 20px;
            min-height: 80px;
        }

        .header-brand {
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1;
        }

        .logo-container {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 8px;
            background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
            border-radius: 16px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.2);
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            min-width: 160px;
            min-height: 80px;
            max-width: 192px;
            max-height: 96px;
        }

        .company-logo {
            max-width: 176px;
            max-height: 88px;
            width: auto;
            height: auto;
            border-radius: 16px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            object-fit: contain;
            object-position: center;
            filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
        }

        .company-logo:hover {
            transform: scale(1.05) translateY(-2px);
            filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
        }

        .brand-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .company-name {
            font-size: 1.8em;
            font-weight: 700;
            color: white;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .company-name:hover {
            color: #ffd700;
        }

        .company-tagline {
            font-size: 0.9em;
            color: rgba(255,255,255,0.9);
            margin: 0;
            font-weight: 400;
            letter-spacing: 0.5px;
        }

        .main-navigation {
            flex: 1;
            display: flex;
            justify-content: center;
            max-width: 600px;
            margin: 0 40px;
        }

        .nav-menu {
            display: flex;
            gap: 5px;
            background: rgba(255,255,255,0.1);
            padding: 8px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            background: transparent;
            border: none;
            border-radius: 10px;
            color: rgba(255,255,255,0.9);
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .nav-item:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }

        .nav-item.active {
            background: rgba(255,255,255,0.25);
            color: white;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }

        .nav-item.active::before {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: #ffd700;
            border-radius: 2px;
        }

        .nav-icon {
            font-size: 1.2em;
            min-width: 20px;
        }

        .nav-content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1px;
        }

        .nav-title {
            font-weight: 600;
            font-size: 0.9em;
            line-height: 1.2;
        }

        .nav-subtitle {
            font-size: 0.7em;
            opacity: 0.8;
            font-weight: 400;
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .action-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 8px 12px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 10px;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .action-btn:hover {
            background: rgba(255,255,255,0.2);
            transform: translateY(-2px);
        }

        .action-icon {
            font-size: 1.1em;
        }

        .action-label {
            font-size: 0.7em;
            font-weight: 500;
        }

        .notification-badge {
            position: absolute;
            top: 2px;
            right: 2px;
            background: #ff4757;
            color: white;
            font-size: 0.6em;
            font-weight: 600;
            padding: 2px 6px;
            border-radius: 10px;
            min-width: 16px;
            text-align: center;
        }

        .user-menu {
            position: relative;
        }

        .user-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 8px 15px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 12px;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .user-btn:hover {
            background: rgba(255,255,255,0.2);
        }

        .user-avatar {
            font-size: 1.5em;
            width: 35px;
            height: 35px;
            background: rgba(255,255,255,0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .user-info {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 1px;
        }

        .user-name {
            font-weight: 600;
            font-size: 0.9em;
        }

        .user-role {
            font-size: 0.7em;
            opacity: 0.8;
        }

        .dropdown-arrow {
            font-size: 0.7em;
            transition: transform 0.3s ease;
        }

        .user-menu.active .dropdown-arrow {
            transform: rotate(180deg);
        }

        .user-dropdown {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            padding: 8px 0;
            min-width: 200px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s ease;
            z-index: 1001;
            margin-top: 8px;
        }

        .user-dropdown.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 20px;
            color: #333;
            text-decoration: none;
            transition: background 0.2s ease;
        }

        .dropdown-item:hover {
            background: #f8f9fa;
        }

        .dropdown-icon {
            font-size: 1.1em;
            width: 20px;
        }

        .dropdown-divider {
            height: 1px;
            background: #e9ecef;
            margin: 8px 0;
        }

        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            gap: 4px;
            padding: 8px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 8px;
            cursor: pointer;
        }

        .hamburger-line {
            width: 20px;
            height: 2px;
            background: white;
            border-radius: 1px;
            transition: all 0.3s ease;
        }

        .mobile-navigation {
            display: none;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(10px);
            border-top: 1px solid rgba(255,255,255,0.2);
        }

        .mobile-nav-menu {
            padding: 20px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mobile-nav-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px 20px;
            background: white;
            border: none;
            border-radius: 12px;
            color: #333;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .mobile-nav-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        .mobile-nav-item.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }

        .mobile-nav-icon {
            font-size: 1.3em;
            min-width: 25px;
        }

        .mobile-nav-content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 2px;
        }

        .mobile-nav-title {
            font-weight: 600;
            font-size: 1em;
        }

        .mobile-nav-subtitle {
            font-size: 0.8em;
            opacity: 0.7;
        }

        @media (max-width: 1024px) {
            .nav-content, .user-info {
                display: none;
            }
            
            .company-logo {
                max-width: 160px;
                max-height: 80px;
                width: auto;
                height: auto;
            }
            
            .nav-item, .action-btn {
                padding: 10px;
            }
            
            .nav-title, .action-label {
                display: none;
            }
        }

        @media (max-width: 768px) {
            .main-navigation, .header-actions .action-btn:not(:last-child) {
                display: none;
            }
            
            .company-logo {
                max-width: 128px;
                max-height: 64px;
                width: auto;
                height: auto;
            }
            
            .logo-container {
                padding: 6px;
                border-radius: 12px;
                min-width: 128px;
                min-height: 64px;
                max-width: 144px;
                max-height: 72px;
            }
            
            .mobile-menu-toggle {
                display: flex;
            }

            .mobile-navigation.active {
                display: block;
            }

            .header-container {
                padding: 0 15px;
                min-height: 70px;
            }

            .company-name {
                font-size: 1.4em;
            }

            .company-tagline {
                font-size: 0.8em;
            }
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
            font-size: 2.5em;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .tabs {
            display: flex;
            background: #34495e;
            border-radius: 10px 10px 0 0;
            overflow: hidden;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .tab {
            flex: 1;
            padding: 15px 20px;
            background: #34495e;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: 600;
            transition: background-color 0.3s ease;
        }

        .tab:hover {
            background: #2c3e50;
        }

        .tab.active {
            background: #3498db;
        }

        .sheet {
            display: none;
            background: white;
            border-radius: 0 0 10px 10px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            padding: 10px;
            min-height: 600px;
            width: 100%;
        }

        .sheet.active {
            display: block;
        }

        .sheet h2 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.8em;
            border-bottom: 3px solid #3498db;
            padding-bottom: 10px;
        }

        .table-container {
            overflow-x: auto;
            border: 3px solid #bdc3c7;
            border-radius: 16px;
            background: white;
            box-shadow: 0 8px 30px rgba(0,0,0,0.1);
            margin: 20px 0;
        }

        .table-container::-webkit-scrollbar {
            height: 12px;
        }

        .table-container::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 6px;
        }

        .table-container::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #3498db, #2980b9);
            border-radius: 6px;
        }

        .table-container::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #2980b9, #1f618d);
        }

        /* Dual scroll bars for backend table */
        .backend-scroll-wrapper {
            position: relative;
        }

        .top-scroll-bar {
            overflow-x: auto;
            overflow-y: hidden;
            height: 20px;
            border: 1px solid #bdc3c7;
            border-bottom: none;
            border-radius: 16px 16px 0 0;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        }

        .top-scroll-content {
            height: 1px;
        }

        .bottom-scroll-bar {
            overflow-x: auto;
            overflow-y: hidden;
            height: 20px;
            border: 1px solid #bdc3c7;
            border-top: none;
            border-radius: 0 0 16px 16px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        }

        .bottom-scroll-content {
            height: 1px;
        }

        .backend-scroll-wrapper .table-container {
            border-radius: 0;
            border-top: none;
            border-bottom: none;
            margin: 0;
        }

        /* Custom scrollbar for top and bottom scroll bars */
        .top-scroll-bar::-webkit-scrollbar,
        .bottom-scroll-bar::-webkit-scrollbar {
            height: 12px;
        }

        .top-scroll-bar::-webkit-scrollbar-track,
        .bottom-scroll-bar::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 6px;
        }

        .top-scroll-bar::-webkit-scrollbar-thumb,
        .bottom-scroll-bar::-webkit-scrollbar-thumb {
            background: linear-gradient(135deg, #3498db, #2980b9);
            border-radius: 6px;
        }

        .top-scroll-bar::-webkit-scrollbar-thumb:hover,
        .bottom-scroll-bar::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(135deg, #2980b9, #1f618d);
        }

        /* Editable table elements */
        .test-name-container {
            position: relative;
            display: flex;
            align-items: center;
        }

        .test-actions {
            position: absolute;
            right: 5px;
            display: flex;
            gap: 2px;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .test-name-cell:hover .test-actions {
            opacity: 1;
        }

        .mini-btn {
            background: rgba(0,0,0,0.7);
            border: none;
            border-radius: 3px;
            color: white;
            cursor: pointer;
            padding: 2px 4px;
            font-size: 10px;
            transition: all 0.2s ease;
        }

        .mini-btn:hover {
            transform: scale(1.1);
        }

        .add-btn:hover {
            background: rgba(40,167,69,0.9);
        }

        .delete-btn:hover {
            background: rgba(220,53,69,0.9);
        }

        .provider-header-container {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 5px;
        }

        .provider-name-input {
            background: transparent;
            border: none;
            color: white;
            font-weight: bold;
            text-align: center;
            width: 100%;
            padding: 2px;
        }

        .provider-actions {
            display: flex;
            gap: 2px;
            margin-top: 3px;
            opacity: 0;
            transition: opacity 0.2s ease;
        }

        .provider-header:hover .provider-actions {
            opacity: 1;
        }

        .subcategory-header-container {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 5px;
        }

        .subcategory-name-input {
            background: transparent;
            border: none;
            color: white;
            font-weight: bold;
            text-align: center;
            width: 100%;
            padding: 2px;
            margin-bottom: 3px;
        }

        .category-name-input {
            background: transparent;
            border: none;
            color: white;
            font-weight: bold;
            text-align: center;
            width: auto;
            min-width: 200px;
            padding: 2px 8px;
            margin: 0 5px;
            font-size: inherit;
        }

        .category-name-input:focus {
            outline: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 4px;
            background: rgba(255, 255, 255, 0.1);
        }

        .info-item.full-width {
            grid-column: 1 / -1;
        }

        /* Receipts History Page Styles */
        .receipts-controls {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .search-filter-row {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

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

        .search-group {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
            flex: 1;
            min-width: 300px;
        }

        .search-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid #e1e8ed;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .search-btn {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 16px;
            transition: transform 0.2s ease;
        }

        .search-btn:hover {
            transform: translateY(-1px);
        }

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

        .filter-select, .filter-date {
            padding: 10px 12px;
            border: 2px solid #e1e8ed;
            border-radius: 6px;
            font-size: 14px;
            background: white;
            min-width: 150px;
        }

        .filter-btn {
            background: #f8f9fa;
            border: 2px solid #e1e8ed;
            padding: 10px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .filter-btn:hover {
            background: #e9ecef;
            border-color: #adb5bd;
        }

        .clear-btn {
            padding: 10px;
            min-width: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8f9fa;
            border: 2px solid #e1e8ed;
        }

        .clear-btn:hover {
            background: #e9ecef;
            border-color: #dc3545;
            color: #dc3545;
        }

        .receipts-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .stat-card {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 20px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 15px;
            transition: transform 0.2s ease;
        }

        .stat-card:hover {
            transform: translateY(-2px);
        }

        .stat-icon {
            font-size: 24px;
            opacity: 0.9;
        }

        .stat-info {
            flex: 1;
        }

        .stat-number {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 4px;
        }

        .stat-label {
            font-size: 12px;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .receipts-table-section {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .table-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid #e1e8ed;
            background: #f8f9fa;
        }

        .table-header h3 {
            margin: 0;
            color: #2c3e50;
            font-size: 18px;
        }

        .table-actions {
            display: flex;
            gap: 10px;
        }

        .receipts-table-container {
            overflow-x: auto;
            max-height: 600px;
            overflow-y: auto;
        }

        .sort-indicator {
            font-size: 10px;
            margin-left: 5px;
            opacity: 0.5;
        }

        .sort-indicator.active {
            opacity: 1;
            color: #667eea;
        }

        .pagination-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-top: 1px solid #e1e8ed;
            background: #f8f9fa;
        }

        .pagination-info {
            color: #6c757d;
            font-size: 14px;
        }

        .pagination-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .pagination-btn {
            background: white;
            border: 1px solid #dee2e6;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .pagination-btn:hover:not(:disabled) {
            background: #f8f9fa;
            border-color: #adb5bd;
        }

        .pagination-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .pagination-numbers {
            display: flex;
            gap: 5px;
        }

        .pagination-number {
            background: white;
            border: 1px solid #dee2e6;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.2s ease;
        }

        .pagination-number:hover {
            background: #f8f9fa;
            border-color: #adb5bd;
        }

        .pagination-number.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .services-preview {
            max-width: 200px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            font-size: 12px;
            color: #6c757d;
        }

        .receipt-actions {
            display: flex;
            gap: 5px;
        }

        .receipt-actions .pro-btn {
            padding: 6px 10px;
            font-size: 12px;
        }

        @media (max-width: 768px) {
            .filter-group {
                flex-direction: column;
                align-items: stretch;
            }

            .filter-select, .filter-date {
                min-width: auto;
            }

            .receipts-stats {
                grid-template-columns: 1fr;
            }

            .table-header {
                flex-direction: column;
                gap: 15px;
                align-items: stretch;
            }

            .pagination-container {
                flex-direction: column;
                gap: 15px;
            }
        }

        /* Service Selection Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            backdrop-filter: blur(5px);
        }

        .modal-container {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 800px;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: modalSlideIn 0.3s ease-out;
        }

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

        .modal-header {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 18px;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 0;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background 0.2s ease;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .modal-content {
            padding: 20px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .service-search-section {
            margin-bottom: 20px;
        }

        .search-group {
            display: flex;
            gap: 10px;
            margin-bottom: 15px;
        }

        .service-search-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid #e1e8ed;
            border-radius: 8px;
            font-size: 14px;
            transition: border-color 0.3s ease;
        }

        .service-search-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .category-select {
            padding: 10px 12px;
            border: 2px solid #e1e8ed;
            border-radius: 6px;
            font-size: 14px;
            background: white;
            min-width: 200px;
        }

        .services-list-container {
            margin-bottom: 20px;
            max-height: 300px;
            overflow-y: auto;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }

        .service-card {
            border: 2px solid #e1e8ed;
            border-radius: 8px;
            padding: 15px;
            cursor: pointer;
            transition: all 0.2s ease;
            background: white;
        }

        .service-card:hover {
            border-color: #667eea;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
        }

        .service-card.selected {
            border-color: #667eea;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .service-card-name {
            font-weight: bold;
            font-size: 14px;
            margin-bottom: 5px;
        }

        .service-card-category {
            font-size: 12px;
            color: #6c757d;
            margin-bottom: 8px;
        }

        .service-card.selected .service-card-category {
            color: rgba(255, 255, 255, 0.8);
        }

        .service-card-price {
            font-weight: bold;
            color: #28a745;
            font-size: 14px;
        }

        .service-card.selected .service-card-price {
            color: white;
        }

        .service-details {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .service-info {
            margin-bottom: 15px;
        }

        .service-info h4 {
            margin: 0 0 8px 0;
            color: #2c3e50;
        }

        .service-meta {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .service-category {
            background: #e9ecef;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            color: #6c757d;
        }

        .service-price {
            font-weight: bold;
            color: #28a745;
            font-size: 16px;
        }

        .quantity-selector {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .quantity-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .quantity-btn {
            background: #667eea;
            color: white;
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: bold;
            transition: background 0.2s ease;
        }

        .quantity-btn:hover {
            background: #5a67d8;
        }

        #serviceQuantity {
            width: 60px;
            text-align: center;
            padding: 8px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            font-size: 14px;
        }

        .service-total {
            text-align: right;
            font-size: 18px;
            color: #2c3e50;
        }

        .modal-footer {
            background: #f8f9fa;
            padding: 20px;
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            border-top: 1px solid #e1e8ed;
        }

        .no-services-message {
            text-align: center;
            color: #6c757d;
            font-style: italic;
            padding: 40px;
        }

        @media (max-width: 768px) {
            .modal-container {
                width: 95%;
                max-height: 95vh;
            }

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

            .service-meta {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .quantity-selector {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }

            .modal-footer {
                flex-direction: column;
            }
        }

        table {
            width: 100%;
            border-collapse: collapse;
            min-width: 800px;
        }

        th {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            padding: 15px 12px;
            text-align: left;
            font-weight: 600;
            border: 1px solid #2980b9;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        td {
            padding: 12px;
            border: 1px solid #bdc3c7;
            background: white;
        }

        tr:nth-child(even) td {
            background: #f8f9fa;
        }

        tr:hover td {
            background: #e8f4fd;
        }

        input, select {
            width: 100%;
            padding: 8px;
            border: 1px solid #bdc3c7;
            border-radius: 4px;
            font-size: 14px;
            font-family: inherit;
        }

        input:focus, select:focus {
            outline: none;
            border-color: #3498db;
            box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
        }

        .price-cell {
            background: linear-gradient(135deg, #e8f8f5, #d5f4e6) !important;
            font-weight: 700;
            color: #27ae60;
            font-family: 'Courier New', monospace;
            font-size: 14px;
            border-left: 4px solid #27ae60 !important;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
            padding: 8px !important;
        }

        .dual-currency-cell {
            min-width: 200px;
            max-width: 220px;
        }

        .dual-currency-input {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .currency-input-group {
            display: flex;
            align-items: center;
            gap: 6px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 4px;
            padding: 4px 6px;
            transition: all 0.3s ease;
        }

        .currency-input-group:hover {
            background: rgba(255, 255, 255, 0.9);
        }

        .currency-label {
            font-size: 11px;
            font-weight: 700;
            color: #2c3e50;
            min-width: 28px;
            text-align: center;
        }

        .price-input {
            background: transparent;
            border: none;
            font-weight: 600;
            color: #27ae60;
            text-align: right;
            font-family: 'Courier New', monospace;
            font-size: 12px;
            flex: 1;
            min-width: 0;
        }

        .price-input:focus {
            outline: 1px solid #27ae60;
            outline-offset: -1px;
            border-radius: 2px;
        }

        .usd-input {
            color: #27ae60;
        }

        .lbp-input {
            color: #3498db;
        }

        .currency-symbol {
            font-weight: bold;
            color: #2c3e50;
            margin-right: 4px;
        }

        .dual-currency {
            display: flex;
            flex-direction: column;
            gap: 2px;
            font-size: 13px;
        }

        .primary-price {
            font-weight: 700;
            color: #27ae60;
        }

        .secondary-price {
            font-weight: 500;
            color: #7f8c8d;
            font-size: 11px;
        }

        .professional-table {
            box-shadow: 0 12px 40px rgba(0,0,0,0.15);
            border-radius: 16px;
            overflow: hidden;
            background: white;
            width: 100%;
            min-width: 1400px;
        }

        .professional-table th {
            background: linear-gradient(135deg, #2c3e50, #34495e);
            color: white;
            padding: 20px 18px;
            text-align: center;
            font-weight: 700;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            border: none;
            position: relative;
            min-width: 140px;
            white-space: nowrap;
        }

        .professional-table th:first-child {
            min-width: 200px;
            text-align: left;
            padding-left: 25px;
        }

        .professional-table th::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #3498db, #2980b9, #8e44ad);
        }

        .professional-table td {
            padding: 18px 15px;
            border: 1px solid #e8ecef;
            vertical-align: middle;
            transition: all 0.3s ease;
            min-width: 140px;
        }

        .professional-table td:first-child {
            min-width: 200px;
            padding-left: 25px;
            font-weight: 600;
            color: #2c3e50;
        }

        .professional-table tr:hover td {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.12);
        }

        .professional-table tbody tr:nth-child(even) td {
            background: linear-gradient(135deg, #fdfdfd, #f8f9fa);
        }

        .professional-table tbody tr:hover:nth-child(even) td {
            background: linear-gradient(135deg, #f1f3f4, #e8ecef);
        }

        .add-row-btn {
            background: #27ae60;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            margin: 15px 5px 5px 0;
            transition: background-color 0.3s ease;
        }

        .add-row-btn:hover {
            background: #219a52;
        }

        .add-column-btn {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            margin: 15px 5px 5px 0;
            transition: background-color 0.3s ease;
        }

        .add-column-btn:hover {
            background: #c0392b;
        }

        .controls {
            margin-bottom: 20px;
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
        }

        .currency-settings-footer {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            border-radius: 16px;
            margin-top: 30px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .footer-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 25px 30px;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .footer-icon {
            font-size: 2.5em;
            opacity: 0.9;
        }

        .footer-title h3 {
            margin: 0 0 5px 0;
            font-size: 1.5em;
            font-weight: 700;
        }

        .footer-title p {
            margin: 0;
            opacity: 0.9;
            font-size: 1em;
        }

        .footer-controls {
            padding: 30px;
        }

        .footer-control-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
        }

        .footer-control-group {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .footer-control-group label {
            font-weight: 600;
            color: white;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .footer-select, .footer-input {
            padding: 12px 16px;
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .footer-select:focus, .footer-input:focus {
            outline: none;
            border-color: #3498db;
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        .footer-select option {
            background: #2c3e50;
            color: white;
        }

        .exchange-rate-group {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            padding: 12px 16px;
        }

        .rate-prefix, .rate-suffix {
            color: rgba(255, 255, 255, 0.8);
            font-weight: 600;
            font-size: 14px;
        }

        .exchange-rate-group input {
            flex: 1;
            background: transparent;
            border: none;
            color: white;
            font-size: 14px;
            font-weight: 600;
            padding: 0;
        }

        .exchange-rate-group input:focus {
            outline: none;
        }

        .footer-cleanup-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 20px;
            background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .footer-cleanup-btn:hover {
            background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.3);
        }

        .professional-category-management {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 16px;
            margin-bottom: 30px;
            padding: 0;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            overflow: hidden;
        }

        .section-header {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 25px 30px;
            text-align: center;
        }

        .section-header h3 {
            margin: 0 0 8px 0;
            font-size: 1.8em;
            font-weight: 700;
        }

        .section-subtitle {
            margin: 0;
            opacity: 0.9;
            font-size: 1em;
            font-weight: 400;
        }

        .management-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            padding: 30px;
        }

        .management-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid #e1e8ed;
        }

        .management-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        .card-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 15px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .card-icon {
            font-size: 2em;
            opacity: 0.9;
        }

        .card-title h4 {
            margin: 0 0 5px 0;
            font-size: 1.3em;
            font-weight: 700;
        }

        .card-subtitle {
            font-size: 0.9em;
            opacity: 0.9;
            font-weight: 400;
        }

        .card-content {
            padding: 15px;
        }

        .select-wrapper {
            margin-bottom: 20px;
        }

        .professional-select {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e1e8ed;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            background: white;
            color: #2c3e50;
            transition: all 0.3s ease;
        }

        .professional-select:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .button-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .pro-btn {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 12px 16px;
            border: none;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .pro-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.15);
        }

        .btn-icon {
            font-size: 14px;
        }

        .pro-btn-primary {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
        }

        .pro-btn-secondary {
            background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
            color: white;
        }

        .pro-btn-danger {
            background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
            color: white;
        }

        .pro-btn-success {
            background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%);
            color: white;
        }

        .pro-btn-warning {
            background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
            color: #212529;
        }

        .pro-btn-outline {
            background: transparent;
            border: 2px solid #6c757d;
            color: #6c757d;
        }

        .pro-btn-outline:hover {
            background: #6c757d;
            color: white;
        }

        .professional-details-panel {
            background: white;
            margin: 0 30px 30px 30px;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .details-header {
            background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
            color: white;
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .details-header h4 {
            margin: 0;
            font-size: 1.2em;
            font-weight: 600;
        }

        .professional-items-grid {
            padding: 25px;
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }

        .category-header {
            background: linear-gradient(135deg, #8e44ad, #9b59b6) !important;
            color: white !important;
            font-weight: bold;
            text-align: center;
            font-size: 14px;
        }

        .test-row {
            background: #f1f2f6 !important;
        }

        .test-name-cell {
            font-weight: 600;
            color: #2c3e50;
            background: #ecf0f1 !important;
        }

        .edit-btn {
            background: #f39c12;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            margin: 15px 5px 5px 0;
            transition: background-color 0.3s ease;
        }

        .edit-btn:hover {
            background: #e67e22;
        }

        .delete-btn {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            margin: 15px 5px 5px 0;
            transition: background-color 0.3s ease;
        }

        .delete-btn:hover {
            background: #c0392b;
        }

        .remove-btn {
            background: #95a5a6;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            margin: 15px 5px 5px 0;
            transition: background-color 0.3s ease;
        }

        .remove-btn:hover {
            background: #7f8c8d;
        }

        /* Category Editor Styles */
        .editor-controls {
            padding: 20px 30px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-bottom: 2px solid #dee2e6;
        }

        .control-section {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .category-editor-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            padding: 30px;
        }

        .editor-section {
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .section-title {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .section-title h3 {
            margin: 0;
            font-size: 1.3em;
            font-weight: 700;
        }

        .section-stats {
            font-size: 0.9em;
            opacity: 0.9;
        }

        .categories-container {
            padding: 20px;
            max-height: 600px;
            overflow-y: auto;
        }

        .category-card {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border: 2px solid #dee2e6;
            border-radius: 10px;
            margin-bottom: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .category-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.1);
            border-color: #667eea;
        }

        .category-header {
            background: linear-gradient(135deg, #495057, #6c757d);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .category-name {
            font-weight: 700;
            font-size: 1.1em;
        }

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

        .mini-btn {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            border: none;
            border-radius: 4px;
            padding: 6px 10px;
            font-size: 12px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .mini-btn:hover {
            background: rgba(255, 255, 255, 0.3);
        }

        .category-items {
            padding: 15px 20px;
        }

        .item-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .item-chip {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 13px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
        }

        .item-chip:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .item-remove {
            background: rgba(255, 255, 255, 0.3);
            border: none;
            border-radius: 50%;
            width: 16px;
            height: 16px;
            font-size: 10px;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .item-remove:hover {
            background: rgba(255, 255, 255, 0.5);
        }

        .mapping-section {
            margin: 30px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .mapping-container {
            padding: 20px;
        }

        .mapping-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .mapping-card {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border: 2px solid #dee2e6;
            border-radius: 8px;
            padding: 15px;
            transition: all 0.3s ease;
        }

        .mapping-card:hover {
            border-color: #667eea;
            transform: translateY(-2px);
        }

        .mapping-header {
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 10px;
            font-size: 1.1em;
        }

        .degree-chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .degree-chip {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        /* Customer Management Styles */
        .main-content .customer-management-grid {
            display: flex !important;
            flex-direction: column !important;
            gap: 20px;
            padding: 10px;
            width: 100%;
            max-width: none;
        }

        /* Force single column layout for customer management */
        .sheet .customer-management-grid {
            display: flex !important;
            flex-direction: column !important;
        }

        /* Additional specificity to ensure vertical stacking */
        body .main-content .sheet .customer-management-grid {
            display: flex !important;
            flex-direction: column !important;
        }

        .customer-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid #e1e8ed;
            width: 100%;
            margin: 0;
            flex: 0 0 auto;
        }

        .customer-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        .customer-form {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .form-group {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .form-group label {
            font-weight: 600;
            color: #2c3e50;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-input, .form-select, .form-textarea {
            padding: 12px 16px;
            border: 2px solid #e1e8ed;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            background: white;
            color: #2c3e50;
            transition: all 0.3s ease;
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-textarea {
            resize: vertical;
            font-family: inherit;
        }

        .form-actions {
            display: flex;
            gap: 15px;
            margin-top: 10px;
        }

        .search-section {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .search-controls {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .search-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid #e1e8ed;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .customer-stats {
            display: flex;
            gap: 20px;
            justify-content: center;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 15px;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 8px;
            border: 1px solid #dee2e6;
        }

        .stat-number {
            font-size: 2em;
            font-weight: 700;
            color: #667eea;
        }

        .stat-label {
            font-size: 12px;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 5px;
        }

        .customer-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
            margin-top: 20px;
        }

        @media (max-width: 768px) {
            .management-grid {
                grid-template-columns: 1fr;
                padding: 20px;
            }
            
            .button-grid {
                grid-template-columns: 1fr;
            }
            
            .professional-items-grid {
                grid-template-columns: 1fr;
            }
            
            .details-header {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .customer-management-grid {
                padding: 5px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .search-controls {
                flex-direction: column;
            }

            .customer-stats {
                flex-direction: column;
            }

            .customer-actions {
                flex-direction: column;
            }
        }

        /* Receipt & Invoice System Styles */
        .receipt-creation-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            padding: 30px;
        }

        .receipt-card {
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            overflow: hidden;
            transition: all 0.3s ease;
            border: 1px solid #e1e8ed;
        }

        .receipt-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.15);
        }

        .customer-info-display {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border: 2px solid #dee2e6;
            border-radius: 8px;
            padding: 15px;
            margin-top: 15px;
        }

        .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .info-item {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .info-item label {
            font-weight: 600;
            color: #6c757d;
            font-size: 12px;
            text-transform: uppercase;
        }

        .info-item span {
            font-weight: 600;
            color: #2c3e50;
            font-size: 14px;
        }

        .services-section {
            margin: 30px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .section-title {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 20px 25px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .section-title h3 {
            margin: 0;
            font-size: 1.3em;
            font-weight: 700;
        }

        .section-actions {
            display: flex;
            gap: 10px;
        }

        .services-table-container {
            padding: 0;
        }

        .receipt-summary {
            margin: 30px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .summary-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 30px;
            padding: 30px;
        }

        .summary-details h4 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.3em;
            font-weight: 700;
        }

        .summary-items {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .summary-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #e9ecef;
            font-size: 16px;
        }

        .summary-item.total-item {
            border-top: 3px solid #667eea;
            border-bottom: none;
            font-weight: 700;
            font-size: 18px;
            color: #2c3e50;
            padding-top: 15px;
        }

        .summary-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            align-content: start;
        }

        .recent-receipts {
            margin: 30px;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            overflow: hidden;
        }

        .receipt-stats {
            display: flex;
            gap: 20px;
        }

        .receipt-stats .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 5px;
        }

        .receipt-stats .stat-number {
            font-size: 1.5em;
            font-weight: 700;
            color: white;
        }

        .receipt-stats .stat-label {
            font-size: 0.8em;
            opacity: 0.9;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Removed duplicate receipts-table-container definition */

        .status-badge {
            padding: 4px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-paid {
            background: linear-gradient(135deg, #28a745, #20c997);
            color: white;
        }

        .status-unpaid {
            background: linear-gradient(135deg, #dc3545, #c82333);
            color: white;
        }

        .status-partial {
            background: linear-gradient(135deg, #ffc107, #fd7e14);
            color: #212529;
        }

        .quantity-input {
            width: 80px;
            text-align: center;
            padding: 6px;
            border: 1px solid #dee2e6;
            border-radius: 4px;
        }

        @media (max-width: 768px) {
            .receipt-creation-grid {
                grid-template-columns: 1fr;
                padding: 20px;
            }

            .summary-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .summary-actions {
                grid-template-columns: 1fr;
            }

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

         /* Settings Page Styles */
         .settings-grid {
             display: grid;
             grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
             gap: 25px;
             padding: 30px;
         }

         .settings-card {
             background: white;
             border-radius: 12px;
             box-shadow: 0 8px 25px rgba(0,0,0,0.08);
             overflow: hidden;
             transition: all 0.3s ease;
             border: 1px solid #e1e8ed;
         }

         .settings-card:hover {
             transform: translateY(-4px);
             box-shadow: 0 15px 35px rgba(0,0,0,0.15);
         }

         .logo-upload-section {
             display: flex;
             align-items: center;
             gap: 20px;
             padding: 15px;
             background: #f8f9fa;
             border-radius: 8px;
             border: 2px dashed #dee2e6;
         }

         .current-logo-preview {
             flex-shrink: 0;
         }

         .logo-preview-img {
             width: 60px;
             height: 60px;
             border-radius: 8px;
             border: 2px solid #dee2e6;
         }

         .logo-upload-controls {
             display: flex;
             flex-direction: column;
             gap: 10px;
         }

         .data-stats {
             display: grid;
             grid-template-columns: repeat(2, 1fr);
             gap: 15px;
             margin-bottom: 20px;
             padding: 20px;
             background: linear-gradient(135deg, #f8f9fa, #e9ecef);
             border-radius: 8px;
         }

         .data-stats .stat-item {
             display: flex;
             flex-direction: column;
             align-items: center;
             gap: 5px;
             padding: 15px;
             background: white;
             border-radius: 8px;
             box-shadow: 0 2px 8px rgba(0,0,0,0.1);
         }

         .data-stats .stat-number {
             font-size: 1.8em;
             font-weight: 700;
             color: #667eea;
         }

         .data-stats .stat-label {
             font-size: 0.8em;
             color: #6c757d;
             text-transform: uppercase;
             letter-spacing: 0.5px;
             text-align: center;
         }

         @media (max-width: 768px) {
             .settings-grid {
                 grid-template-columns: 1fr;
                 padding: 20px;
             }

             .logo-upload-section {
                 flex-direction: column;
                 text-align: center;
             }

             .data-stats {
                 grid-template-columns: 1fr;
             }
         }

        .item-tag {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border: 2px solid #dee2e6;
            border-radius: 12px;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-size: 14px;
            font-weight: 500;
            color: #495057;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0,0,0,0.05);
        }

        .item-tag:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(0,0,0,0.1);
            border-color: #667eea;
        }

        .item-tag .remove-item {
            background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
            color: white;
            border: none;
            border-radius: 8px;
            width: 24px;
            height: 24px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            margin-left: 8px;
        }

        .item-tag .remove-item:hover {
            background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
            transform: scale(1.1);
        }

        .confirmation-dialog {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .confirmation-content {
            background: white;
            padding: 30px;
            border-radius: 10px;
            text-align: center;
            max-width: 400px;
            width: 90%;
        }

        .confirmation-content h3 {
            color: #e74c3c;
            margin-bottom: 15px;
        }

        .confirmation-content p {
            margin-bottom: 20px;
            color: #7f8c8d;
        }

        .confirmation-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .confirm-btn {
            background: #e74c3c;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
        }

        .cancel-btn {
            background: #95a5a6;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
        }

        .search-box {
            padding: 10px;
            border: 2px solid #bdc3c7;
            border-radius: 6px;
            font-size: 14px;
            width: 250px;
        }

        .search-box:focus {
            border-color: #3498db;
            box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
        }

        .export-btn {
            background: #9b59b6;
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: background-color 0.3s ease;
        }

        .export-btn:hover {
            background: #8e44ad;
        }

        .formula-info {
            background: #ecf0f1;
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
            border-left: 4px solid #3498db;
        }

        .formula-info h3 {
            color: #2c3e50;
            margin-bottom: 10px;
        }

        .formula-info p {
            color: #7f8c8d;
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .container {
                padding: 10px;
            }
            
            .controls {
                flex-direction: column;
                align-items: stretch;
            }
            
            .search-box {
                width: 100%;
            }
        }

        /* Login Page Styles */
        .login-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            overflow: auto;
        }

        .login-background {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            z-index: 1;
        }

        .login-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3);
            z-index: 2;
        }

        .floating-shapes {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 3;
        }

        .shape {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
        }

        .shape-1 {
            width: 80px;
            height: 80px;
            top: 20%;
            left: 10%;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 120px;
            height: 120px;
            top: 60%;
            right: 15%;
            animation-delay: 2s;
        }

        .shape-3 {
            width: 60px;
            height: 60px;
            bottom: 20%;
            left: 20%;
            animation-delay: 4s;
        }

        .shape-4 {
            width: 100px;
            height: 100px;
            top: 10%;
            right: 25%;
            animation-delay: 1s;
        }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px);
            }
            50% {
                transform: translateY(-20px);
            }
        }

        .login-content {
            position: relative;
            z-index: 4;
            display: flex;
            gap: 30px;
            max-width: 1000px;
            width: 100%;
            padding: 20px;
            align-items: center;
            justify-content: center;
        }

        .login-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            padding: 40px;
            width: 100%;
            max-width: 450px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .login-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .login-logo {
            margin-bottom: 20px;
        }

        .logo-img {
            width: 60px;
            height: 60px;
            border-radius: 12px;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
            transition: transform 0.3s ease;
        }

        .logo-img:hover {
            transform: scale(1.1) rotate(5deg);
        }

        .login-title {
            font-size: 2.2em;
            font-weight: 700;
            color: #2c3e50;
            margin: 0 0 10px 0;
            background: linear-gradient(135deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .login-subtitle {
            color: #6c757d;
            font-size: 1em;
            margin: 0;
            font-weight: 400;
        }

        .login-form-container {
            margin-bottom: 30px;
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            color: #2c3e50;
            font-size: 14px;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .label-icon {
            font-size: 16px;
        }

        .login-input {
            width: 100%;
            padding: 15px 20px;
            border: 2px solid #e1e8ed;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.9);
            transition: all 0.3s ease;
            position: relative;
            z-index: 2;
        }

        .login-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
            background: white;
        }

        .input-underline {
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 3px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            transition: all 0.3s ease;
            transform: translateX(-50%);
            border-radius: 2px;
        }

        .login-input:focus + .input-underline {
            width: 100%;
        }

        .password-input-container {
            position: relative;
        }

        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            font-size: 18px;
            cursor: pointer;
            color: #6c757d;
            transition: color 0.3s ease;
            z-index: 3;
        }

        .password-toggle:hover {
            color: #667eea;
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }

        .remember-me {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            color: #6c757d;
            cursor: pointer;
            user-select: none;
        }

        .remember-me input[type="checkbox"] {
            display: none;
        }

        .checkmark {
            width: 20px;
            height: 20px;
            border: 2px solid #e1e8ed;
            border-radius: 4px;
            position: relative;
            transition: all 0.3s ease;
        }

        .remember-me input[type="checkbox"]:checked + .checkmark {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border-color: #667eea;
        }

        .remember-me input[type="checkbox"]:checked + .checkmark::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-weight: bold;
            font-size: 12px;
        }

        .forgot-password {
            color: #667eea;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .forgot-password:hover {
            color: #764ba2;
            text-decoration: underline;
        }

        .login-btn {
            width: 100%;
            padding: 16px 24px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
        }

        .login-btn:active {
            transform: translateY(0);
        }

        .btn-text {
            display: inline-block;
            transition: opacity 0.3s ease;
        }

        .btn-loading {
            display: none;
            align-items: center;
            gap: 10px;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-top: 2px solid white;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .login-error, .login-success {
            display: none;
            align-items: center;
            gap: 10px;
            padding: 12px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            margin-top: 20px;
        }

        .login-error {
            background: rgba(220, 53, 69, 0.1);
            color: #dc3545;
            border: 1px solid rgba(220, 53, 69, 0.2);
        }

        .login-success {
            background: rgba(40, 167, 69, 0.1);
            color: #28a745;
            border: 1px solid rgba(40, 167, 69, 0.2);
        }

        .login-footer {
            text-align: center;
            margin-top: 30px;
        }

        .system-info {
            color: #6c757d;
            font-size: 13px;
            line-height: 1.5;
        }

        .system-info p {
            margin: 5px 0;
        }

        .login-attempts {
            display: none;
            align-items: center;
            justify-content: center;
            gap: 8px;
            margin-top: 15px;
            padding: 10px 15px;
            background: rgba(255, 193, 7, 0.1);
            border: 1px solid rgba(255, 193, 7, 0.3);
            border-radius: 8px;
            color: #856404;
            font-size: 14px;
            font-weight: 500;
        }

        .login-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            max-width: 300px;
        }

        .login-card h3 {
            color: #2c3e50;
            font-size: 1.3em;
            margin: 0 0 20px 0;
            text-align: center;
            font-weight: 700;
        }

        .credential-item {
            margin-bottom: 15px;
            font-size: 14px;
            color: #495057;
        }

        .credential-item strong {
            color: #2c3e50;
            display: inline-block;
            width: 80px;
        }

        .credential-item code {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 6px 12px;
            border-radius: 6px;
            font-family: 'Courier New', monospace;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-block;
            font-weight: 600;
        }

        .credential-item code:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .demo-note {
            font-size: 12px;
            color: #6c757d;
            text-align: center;
            margin-top: 15px;
            font-style: italic;
        }

        @media (max-width: 768px) {
            .login-content {
                flex-direction: column;
                padding: 15px;
            }

            .login-card {
                padding: 30px 25px;
                max-width: 400px;
            }

        .login-card {
                max-width: 400px;
                order: -1;
            }

            .login-title {
                font-size: 1.8em;
            }
        }

        /* Dashboard Styles */
        .main-content {
            padding: 20px 10px;
            width: 100%;
        }

        .dashboard-container {
            padding: 40px 20px;
            max-width: 1400px;
            margin: 0 auto;
        }

        .welcome-section {
            text-align: center;
            margin-bottom: 50px;
            padding: 40px 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            color: white;
        }

        .welcome-title {
            font-size: 2.5em;
            margin-bottom: 10px;
            font-weight: 700;
        }

        .welcome-subtitle {
            font-size: 1.2em;
            opacity: 0.95;
        }

        .quick-access-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-bottom: 50px;
        }

        .access-card {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .access-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }

        .access-card .card-icon {
            font-size: 3em;
            flex-shrink: 0;
        }

        .access-card .card-content {
            flex: 1;
        }

        .access-card .card-title {
            font-size: 1.3em;
            margin-bottom: 8px;
            color: #2c3e50;
        }

        .access-card .card-description {
            font-size: 0.9em;
            color: #666;
            line-height: 1.4;
        }

        .access-card .card-arrow {
            font-size: 2em;
            color: #667eea;
            flex-shrink: 0;
        }

        .stats-section {
            background: white;
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        .stats-title {
            font-size: 1.5em;
            margin-bottom: 20px;
            color: #2c3e50;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .main-footer {
            text-align: center;
            padding: 30px 20px;
            background: #2c3e50;
            color: white;
            margin-top: 50px;
        }

        /* CRITICAL: Force vertical stacking for customer management - highest priority */
        .customer-management-grid {
            display: flex !important;
            flex-direction: column !important;
            align-items: stretch !important;
        }

        .customer-management-grid .customer-card {
            width: 100% !important;
            max-width: 100% !important;
            flex: none !important;
        }

    /* =====================================================
       USER MENU AND AUTHENTICATION STYLES
       ===================================================== */
    
    .header-user {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 25px;
        transition: background 0.3s ease;
    }

    .user-info:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-weight: bold;
        font-size: 16px;
        text-transform: uppercase;
    }

    .user-details {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .user-name {
        font-weight: 600;
        color: white;
        font-size: 14px;
        line-height: 1.2;
    }

    .user-role {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.2;
    }

    .user-actions {
        position: relative;
    }

    .user-menu-btn {
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: white;
        font-size: 16px;
    }

    .user-menu-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }

    .user-menu {
        position: absolute;
        top: 100%;
        right: 0;
        background: white;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        min-width: 200px;
        padding: 8px 0;
        margin-top: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
    }

    .user-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .user-menu::before {
        content: '';
        position: absolute;
        top: -8px;
        right: 20px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid white;
    }

    .menu-item {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: #333;
        text-decoration: none;
        transition: background 0.2s ease;
        font-size: 14px;
        font-weight: 500;
    }

    .menu-item:hover {
        background: #f8f9fa;
        color: #667eea;
    }

    .menu-item:last-child {
        border-top: 1px solid #eee;
        color: #e74c3c;
    }

    .menu-item:last-child:hover {
        background: #fee;
        color: #c33;
    }

    .menu-icon {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    /* Responsive user menu */
    @media (max-width: 768px) {
        .header-user {
            gap: 10px;
        }

        .user-info {
            padding: 6px 10px;
        }

        .user-avatar {
            width: 35px;
            height: 35px;
            font-size: 14px;
        }

        .user-name {
            font-size: 13px;
        }

        .user-role {
            font-size: 11px;
        }

        .user-menu-btn {
            width: 35px;
            height: 35px;
            font-size: 14px;
        }

        .user-menu {
            min-width: 180px;
            right: -10px;
        }
    }

    /* Dark mode support for user menu */
    @media (prefers-color-scheme: dark) {
        .user-menu {
            background: #2d3748;
            color: white;
        }

        .user-menu::before {
            border-bottom-color: #2d3748;
        }

        .menu-item {
            color: #e2e8f0;
        }

        .menu-item:hover {
            background: #4a5568;
            color: #667eea;
        }

        .menu-item:last-child {
            border-top-color: #4a5568;
            color: #fc8181;
        }

        .menu-item:last-child:hover {
            background: #742a2a;
            color: #f56565;
        }
    }

    /* =====================================================
       LOGIN PAGE STYLES
       ===================================================== */
    
    /* Login page body override */
    body.login-page {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        min-height: 100vh !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    .login-container {
        background: white;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        width: 100%;
        max-width: 400px;
        position: relative;
    }

    .login-header {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 40px 30px;
        text-align: center;
        position: relative;
    }

    .login-header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHZpZXdCb3g9IjAgMCA0MCA0MCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjQwIiByeD0iOCIgZmlsbD0iIzY2N2VlYSIvPgo8cGF0aCBkPSJNMjAgMTBWMzBNMTAgMjBIMzAiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIi8+Cjwvc3ZnPgo=') repeat;
        opacity: 0.1;
    }

    .login-logo {
        width: 80px;
        height: 80px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 20px;
        font-size: 32px;
        position: relative;
        z-index: 1;
    }

    .login-title {
        font-size: 28px;
        font-weight: 700;
        margin: 0 0 10px;
        position: relative;
        z-index: 1;
    }

    .login-subtitle {
        font-size: 16px;
        opacity: 0.9;
        margin: 0;
        position: relative;
        z-index: 1;
    }

    .login-form {
        padding: 40px 30px;
    }

    .login-form .form-group {
        margin-bottom: 25px;
        position: relative;
    }

    .login-form .form-label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #333;
        font-size: 14px;
    }

    .login-form .form-input {
        width: 100%;
        padding: 15px 20px;
        border: 2px solid #e1e5e9;
        border-radius: 10px;
        font-size: 16px;
        transition: all 0.3s ease;
        box-sizing: border-box;
    }

    .login-form .form-input:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

    .login-form .form-input.error {
        border-color: #e74c3c;
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
    }

    .password-container {
        position: relative;
    }

    .password-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        font-size: 18px;
        color: #666;
        padding: 5px;
    }

    .password-toggle:hover {
        color: #333;
    }

    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 30px;
    }

    .remember-me {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .remember-me input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: #667eea;
    }

    .remember-me label {
        font-size: 14px;
        color: #666;
        cursor: pointer;
    }

    .forgot-password {
        color: #667eea;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
    }

    .forgot-password:hover {
        text-decoration: underline;
    }

    .login-button {
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    }

    .login-button:active {
        transform: translateY(0);
    }

    .login-button:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .login-button .spinner {
        display: none;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-top: 2px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin-right: 10px;
    }

    .login-button.loading .spinner {
        display: inline-block;
    }

    .login-button.loading .button-text {
        opacity: 0.7;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .error-message {
        background: #fee;
        color: #c33;
        padding: 12px 15px;
        border-radius: 8px;
        margin-bottom: 20px;
        border-left: 4px solid #e74c3c;
        font-size: 14px;
        display: none;
    }

    .error-message.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

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

    .success-message {
        background: #efe;
        color: #3c3;
        padding: 12px 15px;
        border-radius: 8px;
        margin-bottom: 20px;
        border-left: 4px solid #27ae60;
        font-size: 14px;
        display: none;
    }

    .success-message.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .login-footer {
        text-align: center;
        padding: 20px 30px;
        background: #f8f9fa;
        color: #666;
        font-size: 14px;
    }

    .login-footer a {
        color: #667eea;
        text-decoration: none;
    }

    .login-footer a:hover {
        text-decoration: underline;
    }

    .demo-credentials {
        background: #f0f8ff;
        border: 1px solid #b3d9ff;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 20px;
        font-size: 13px;
    }

    .demo-credentials h4 {
        margin: 0 0 10px;
        color: #0066cc;
        font-size: 14px;
    }

    .demo-credentials p {
        margin: 5px 0;
        color: #333;
    }

    .demo-credentials strong {
        color: #0066cc;
    }

    /* Login page responsive design */
    @media (max-width: 480px) {
        body.login-page {
            padding: 10px !important;
        }
        
        .company-logo {
            max-width: 112px;
            max-height: 56px;
            width: auto;
            height: auto;
        }
        
        .logo-container {
            padding: 4px;
            border-radius: 10px;
            min-width: 112px;
            min-height: 56px;
            max-width: 128px;
            max-height: 64px;
        }
        
        .login-container {
            max-width: 100%;
        }
        
        .login-header {
            padding: 30px 20px;
        }
        
        .login-form {
            padding: 30px 20px;
        }
        
        .login-title {
            font-size: 24px;
        }
    }

    /* Login page dark mode support */
    @media (prefers-color-scheme: dark) {
        .login-container {
            background: #2d3748;
            color: white;
        }
        
        .login-form .form-label {
            color: #e2e8f0;
        }
        
        .login-form .form-input {
            background: #4a5568;
            border-color: #4a5568;
            color: white;
        }
        
        .login-form .form-input:focus {
            border-color: #667eea;
        }
        
        .login-footer {
            background: #1a202c;
            color: #a0aec0;
        }
    }

/* Receipt Page Header */
.receipt-page-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.receipt-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.receipt-subtitle {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

/* Mobile responsive for receipt page */
@media (max-width: 600px) {
    .receipt-title {
        font-size: 2rem;
    }
    
    .receipt-subtitle {
        font-size: 1rem;
    }
}

/* Modern Professional Dashboard Styles */
.modern-dashboard {
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
    width: 100%;
}

/* Dashboard Hero Section */
.dashboard-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 40px 0;
    color: #1e293b;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #e2e8f0;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 16px 0;
    color: #1e293b;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 20px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.hero-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.hero-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.hero-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

/* KPI Grid */
.kpi-grid {
    max-width: 1800px;
    margin: -20px auto 0;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 16px;
    position: relative;
    z-index: 2;
}

.kpi-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.kpi-card.customers::before {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.kpi-card.receipts::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.kpi-card.revenue::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.kpi-card.paid::before {
    background: linear-gradient(90deg, #22c55e, #16a34a);
}

.kpi-card.pending::before {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}

.kpi-card.tests::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.kpi-card.average::before {
    background: linear-gradient(90deg, #06b6d4, #0891b2);
}

.kpi-card.today::before {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.kpi-card.conversion::before {
    background: linear-gradient(90deg, #ec4899, #db2777);
}

.kpi-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.kpi-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    flex-shrink: 0;
}

.kpi-icon svg {
    width: 18px;
    height: 18px;
}

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.kpi-value {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1;
}

.kpi-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
}

.kpi-change.positive {
    color: #059669;
}

.kpi-change.negative {
    color: #dc2626;
}

.kpi-change svg {
    width: 12px;
    height: 12px;
}

/* Dashboard Content */
.dashboard-content {
    max-width: 1800px;
    margin: 40px auto 0;
    padding: 0 40px 60px;
}

.content-section {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
    border-bottom: 1px solid #f3f4f6;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.section-tabs {
    display: flex;
    gap: 8px;
    background: white;
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tab-content {
    display: none;
    padding: 0;
}

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

/* Data Table */
.data-table {
    padding: 0;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid #f3f4f6;
    background: #fafbfc;
}

.table-title {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
}

.table-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn.primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.action-btn.secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.action-btn.secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.table-container {
    overflow-x: auto;
}

.data-table-content {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.data-table-content th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    padding: 20px 24px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table-content td {
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    vertical-align: middle;
}

.data-table-content tr:hover {
    background: #f8fafc;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-paid {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.status-unpaid {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
}

.status-partial {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.btn-action {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: #f3f4f6;
    color: #374151;
    transform: scale(1.1);
}

.loading-row {
    text-align: center;
}

.loading-cell {
    padding: 60px;
    color: #6b7280;
    font-size: 16px;
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-data {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 40px;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 40px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    text-decoration: none;
    color: inherit;
}

.quick-action:hover {
    border-color: #3b82f6;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);
    transform: translateY(-4px);
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #6b7280;
    flex-shrink: 0;
}

.action-icon svg {
    width: 24px;
    height: 24px;
}

.action-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.action-content p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

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

@media (max-width: 1400px) {
    .hero-content {
        max-width: 1200px;
    }
    
    .kpi-grid {
        max-width: 1200px;
        grid-template-columns: repeat(5, 1fr);
    }
    
    .dashboard-content {
        max-width: 1200px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .quick-actions {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 1000px) {
    .kpi-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        margin-top: -20px;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .section-tabs {
        width: 100%;
        justify-content: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .table-actions {
        width: 100%;
        justify-content: center;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}