.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-box{background:#fff;border-radius:12px;padding:40px;width:100%;max-width:400px;box-shadow:0 10px 40px #0003}.login-box h1{margin:0 0 10px;color:#333;font-size:28px;text-align:center}.login-subtitle{text-align:center;color:#666;margin-bottom:30px;font-size:14px}.login-error{background:#fee;color:#c33;padding:12px;border-radius:6px;margin-bottom:20px;font-size:14px;border:1px solid #fcc}.login-box .form-group{margin-bottom:20px}.login-box label{display:block;margin-bottom:8px;color:#333;font-weight:500;font-size:14px}.login-box input{width:100%;padding:12px;border:1px solid #ddd;border-radius:6px;font-size:16px;transition:border-color .3s;box-sizing:border-box}.login-box input:focus{outline:none;border-color:#667eea}.login-box input:disabled{background:#f5f5f5;cursor:not-allowed}.login-button{width:100%;padding:14px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:6px;font-size:16px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;margin-top:10px}.login-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.login-button:disabled{opacity:.6;cursor:not-allowed}.login-footer{text-align:center;margin-top:30px;color:#999;font-size:12px}.restaurants-page{padding:30px;max-width:1400px;margin:0 auto}.restaurants-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.restaurants-header h1{margin:0;color:#333;font-size:28px}.header-actions{display:flex;gap:10px}.btn-primary{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;padding:12px 24px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.btn-secondary{background:#e0e0e0;color:#333;border:none;padding:12px 24px;border-radius:6px;font-size:14px;font-weight:600;cursor:pointer;transition:background .2s}.btn-secondary:hover{background:#d0d0d0}.error-message{background:#fee;color:#c33;padding:12px;border-radius:6px;margin-bottom:20px;border:1px solid #fcc}.loading{text-align:center;padding:40px;color:#666;font-size:16px}.restaurants-table-container{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 8px #0000001a}.restaurants-table{width:100%;border-collapse:collapse}.restaurants-table thead{background:#f5f5f5}.restaurants-table th{padding:15px;text-align:left;font-weight:600;color:#333;border-bottom:2px solid #ddd}.restaurants-table td{padding:15px;border-bottom:1px solid #eee}.restaurants-table tbody tr:hover{background:#f9f9f9}.status-badge{padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;display:inline-block}.status-badge.active{background:#d4edda;color:#155724}.status-badge.inactive{background:#f8d7da;color:#721c24}.empty-state{text-align:center;padding:40px;color:#999}.modal-overlay.active{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000}.modal-content{background:#fff;border-radius:12px;padding:30px;width:90%;max-width:500px;box-shadow:0 10px 40px #0003}.modal-content h2{margin:0 0 20px;color:#333}.modal-content .form-group{margin-bottom:20px}.modal-content label{display:block;margin-bottom:8px;color:#333;font-weight:500;font-size:14px}.modal-content input{width:100%;padding:12px;border:1px solid #ddd;border-radius:6px;font-size:16px;box-sizing:border-box}.modal-content input:focus{outline:none;border-color:#667eea}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:30px}.modal-actions button{min-width:100px}.modal-actions button:disabled{opacity:.6;cursor:not-allowed}.sponsors-page{padding:30px;max-width:1400px;margin:0 auto}.sponsors-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.sponsors-header h1{font-size:28px;color:#1a202c;margin:0}.header-actions{display:flex;gap:12px}.sponsors-table-container{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden}.sponsors-table{width:100%;border-collapse:collapse}.sponsors-table thead{background:#f7fafc}.sponsors-table th{padding:16px;text-align:left;font-weight:600;color:#2d3748;font-size:14px;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid #e2e8f0}.sponsors-table td{padding:16px;border-bottom:1px solid #e2e8f0;color:#4a5568}.sponsors-table tbody tr:hover{background:#f7fafc}.sponsors-table tbody tr:last-child td{border-bottom:none}.empty-state{text-align:center!important;color:#a0aec0;padding:60px 20px!important;font-size:16px}.action-buttons{display:flex;gap:8px}.btn-icon{background:none;border:none;cursor:pointer;font-size:18px;padding:4px 8px;border-radius:4px;transition:background-color .2s}.btn-icon:hover{background:#edf2f7}.btn-primary{background:#22c55e;color:#fff;border:none;padding:10px 20px;border-radius:8px;font-weight:600;cursor:pointer;transition:background-color .2s}.btn-primary:hover:not(:disabled){background:#16a34a}.btn-primary:disabled{background:#cbd5e0;cursor:not-allowed}.btn-secondary{background:#e2e8f0;color:#2d3748;border:none;padding:10px 20px;border-radius:8px;font-weight:600;cursor:pointer;transition:background-color .2s}.btn-secondary:hover{background:#cbd5e0}.status-badge{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.status-badge.active{background:#c6f6d5;color:#22543d}.status-badge.inactive{background:#fed7d7;color:#742a2a}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:#fff;border-radius:12px;padding:30px;width:100%;max-width:600px;max-height:90vh;overflow-y:auto}.modal-content.large{max-width:900px}.modal-content h2{margin:0 0 24px;color:#1a202c;font-size:24px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:8px;font-weight:600;color:#2d3748;font-size:14px}.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px;transition:border-color .2s;font-family:inherit}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:#22c55e}.form-group textarea{resize:vertical}.checkbox-label{display:flex;align-items:center;gap:8px;cursor:pointer}.checkbox-label input[type=checkbox]{width:auto;cursor:pointer}.modal-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:24px;border-top:1px solid #e2e8f0}.error-message{background:#fed7d7;color:#742a2a;padding:12px 16px;border-radius:8px;margin-bottom:20px;font-weight:500}.loading{text-align:center;padding:60px 20px;color:#a0aec0;font-size:16px}.restaurant-types-page{padding:20px;width:100%;display:flex;flex-direction:column}.restaurant-types-page .page-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.restaurant-types-page .table-container{margin-top:20px;overflow-x:auto;width:100%}.restaurant-types-page .data-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000001a;table-layout:fixed;direction:ltr}.restaurant-types-page .data-table th,.restaurant-types-page .data-table td{padding:12px;text-align:right;border-bottom:1px solid #e2e8f0;vertical-align:middle}.restaurant-types-page .data-table th{background:#f8f9fa;font-weight:600;border-bottom:2px solid #e2e8f0;white-space:nowrap}.restaurant-types-page .data-table th:first-child,.restaurant-types-page .data-table td:first-child{width:200px}.restaurant-types-page .data-table th:last-child,.restaurant-types-page .data-table td:last-child{width:80px;text-align:center}.restaurant-types-page .data-table tr:hover{background:#f8f9fa}.restaurant-types-page .alert{margin:20px 0}.restaurant-types-page .modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#0006;display:flex;align-items:center;justify-content:center;z-index:1000}.restaurant-types-page .modal-content{width:100%;max-width:480px;background:#fff;border-radius:8px;box-shadow:0 10px 30px #0003}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background:#f5f5f5;color:#333;overflow:hidden}.app-container{display:flex;height:100vh}.sidebar{width:250px;background:#2c3e50;color:#fff;padding:20px;display:flex;flex-direction:column;height:100vh;overflow:hidden}.sidebar-footer{margin-top:auto;padding-top:20px;border-top:1px solid rgba(255,255,255,.1);flex-shrink:0}.logo{margin-bottom:30px;padding-bottom:20px;border-bottom:1px solid rgba(255,255,255,.1);flex-shrink:0}.logo h1{font-size:20px;margin:0;font-weight:600}.nav-menu{list-style:none;overflow-y:auto;overflow-x:hidden;flex:1;min-height:0;padding-right:5px}.nav-menu::-webkit-scrollbar{width:6px}.nav-menu::-webkit-scrollbar-track{background:#ffffff1a;border-radius:3px}.nav-menu::-webkit-scrollbar-thumb{background:#ffffff4d;border-radius:3px}.nav-menu::-webkit-scrollbar-thumb:hover{background:#ffffff80}.nav-link{display:block;padding:12px 15px;color:#ecf0f1;text-decoration:none;border-radius:5px;margin-bottom:5px;transition:background .2s}.nav-link:hover{background:#34495e}.nav-link.active{background:#3498db;color:#fff}.main-content{flex:1;padding:30px;overflow-y:auto}.page{display:none}.page.active{display:block}.page h2{margin-bottom:20px;color:#2c3e50}.page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:30px}.stat-card{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.stat-card h3{font-size:14px;color:#7f8c8d;margin-bottom:10px}.stat-value{font-size:32px;font-weight:700;color:#2c3e50}.btn{padding:10px 20px;border:none;border-radius:5px;cursor:pointer;font-size:14px;transition:background .2s}.btn-primary{background:#3498db;color:#fff}.btn-primary:hover{background:#2980b9}.btn-danger{background:#e74c3c;color:#fff}.btn-danger:hover{background:#c0392b}.btn-success{background:#27ae60;color:#fff}.btn-success:hover{background:#229954}.menu-container{display:grid;grid-template-columns:300px 1fr;gap:20px}.categories-section,.items-section{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.categories-section h3,.items-section h3{margin-bottom:15px;color:#2c3e50}.items-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.categories-list,.items-list{display:flex;flex-direction:column;gap:10px}.category-item,.item-card{padding:15px;background:#f8f9fa;border-radius:5px;border:1px solid #e0e0e0;cursor:pointer;transition:all .2s}.category-item:hover,.item-card:hover{background:#e8f4f8;border-color:#3498db}.category-item.active{background:#3498db;color:#fff;border-color:#3498db}.category-item.active h4,.category-item.active p{color:#fff!important}.category-item.active .btn-primary{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3)}.category-item.active .btn-primary:hover{background:#ffffff4d}.category-item.active .btn-danger{background:#e74c3ce6;color:#fff;border:1px solid rgba(231,76,60,1)}.category-item.active .btn-danger:hover{background:#c0392be6}.item-card{display:flex;justify-content:space-between;align-items:center}.item-info h4{margin-bottom:5px}.item-info p{color:#7f8c8d;font-size:14px}.item-price{font-size:20px;font-weight:700;color:#27ae60}.item-actions{display:flex;gap:5px}.btn-small{padding:5px 10px;font-size:12px}.date-filter{padding:8px 12px;border:1px solid #ddd;border-radius:5px;font-size:14px}.charts-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(400px,1fr));gap:20px;margin-top:20px}.chart-container{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.chart-container h3{margin-bottom:15px;color:#2c3e50}.chart-container canvas{max-height:300px;height:300px!important}.customers-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:20px}.customer-card{background:#fff;padding:24px;border-radius:12px;box-shadow:0 4px 6px #0000001a;transition:transform .2s ease,box-shadow .2s ease;border:1px solid #e0e0e0}.customer-card:hover{transform:translateY(-2px);box-shadow:0 6px 12px #00000026}.customer-info{display:flex;flex-direction:column;gap:16px}.customer-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:0;padding-bottom:16px;border-bottom:2px solid #f0f0f0}.customer-header>div{display:flex;flex-direction:column;gap:8px;flex:1}.customer-header h4{margin:0;color:#2c3e50;font-size:20px;font-weight:700}.badge{padding:4px 12px;border-radius:12px;font-size:12px;font-weight:600}.badge-app{background:#3498db;color:#fff}.customer-details{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:8px}.customer-detail-item{margin:0;font-size:14px;color:#555;padding:8px 0}.customer-detail-item strong{color:#2c3e50;display:block;margin-bottom:4px;font-size:12px;text-transform:uppercase;letter-spacing:.5px;opacity:.7}.customer-source-badge{padding:6px 14px;border-radius:20px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:6px;width:fit-content;margin-top:4px}.badge-app-user{background:linear-gradient(135deg,#27ae60,#229954);color:#fff;box-shadow:0 2px 4px #27ae604d}.badge-restaurant-only{background:linear-gradient(135deg,#95a5a6,#7f8c8d);color:#fff;box-shadow:0 2px 4px #95a5a64d}.customer-actions{margin-top:20px;padding-top:20px;border-top:2px solid #f0f0f0;display:flex;justify-content:flex-end}.customer-actions .btn-sm{padding:10px 20px;font-size:14px;font-weight:600;border-radius:8px;display:inline-flex;align-items:center;gap:6px;transition:all .2s ease}.customer-actions .btn-sm:hover{transform:translateY(-1px);box-shadow:0 4px 8px #00000026}.customer-insights-modal{padding:20px;max-height:90vh;overflow-y:auto}.insights-header{margin-bottom:30px;padding-bottom:20px;border-bottom:2px solid #ecf0f1}.insights-header h2{margin:0 0 15px;color:#2c3e50}.customer-basic-info h3{margin:10px 0 5px;color:#2c3e50}.customer-basic-info p{margin:5px 0;color:#555;font-size:14px}.insights-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-bottom:30px}.insight-stat-card{background:#fff;padding:24px;border-radius:12px;text-align:center;border:1px solid #e0e0e0;box-shadow:0 2px 4px #0000000d;transition:transform .2s ease,box-shadow .2s ease}.insight-stat-card:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.insight-stat-card h4{margin:0 0 12px;font-size:13px;color:#7f8c8d;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.insight-stat-card .stat-value{font-size:32px;font-weight:700;color:var(--primary-color, #3498db);margin:0;line-height:1.2}.insight-stat-card .stat-subtext{font-size:12px;color:#7f8c8d;margin-top:8px;line-height:1.4}.insights-section{margin-bottom:30px;background:#fff;padding:25px;border-radius:12px;box-shadow:0 2px 8px #0000001a}.insights-section h3{margin:0 0 20px;color:#2c3e50;font-size:20px;font-weight:700;padding-bottom:15px;border-bottom:2px solid #f0f0f0}.insights-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden}.insights-table thead{background:linear-gradient(135deg,var(--primary-color, #3498db) 0%,#2980b9 100%);color:#fff}.insights-table th{padding:14px 18px;text-align:left;font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px}.insights-table td{padding:14px 18px;border-bottom:1px solid #ecf0f1;font-size:14px;color:#2c3e50}.insights-table tbody tr:hover{background:#f8f9fa}.insights-table tbody tr:last-child td{border-bottom:none}.transactions-list{display:flex;flex-direction:column;gap:12px}.transaction-item{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;background:#f8f9fa;border-radius:10px;border-left:4px solid var(--primary-color, #3498db);transition:all .2s ease}.transaction-item:hover{background:#e8f4f8;transform:translate(4px);box-shadow:0 2px 4px #0000001a}.transaction-item>div:first-child{display:flex;flex-direction:column;gap:8px}.transaction-item>div:last-child{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.transaction-type{font-size:11px;color:#fff;background:var(--primary-color, #3498db);padding:4px 10px;border-radius:12px;display:inline-block;width:fit-content;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.transaction-amount{font-size:18px;font-weight:700;color:var(--primary-color, #3498db)}.transaction-date{font-size:12px;color:#7f8c8d;font-weight:500}.app-orders-list{display:flex;flex-direction:column;gap:15px}.app-menu-container{display:grid;grid-template-columns:1fr 2fr;gap:30px}.categories-section,.items-section{background:#fff;padding:25px;border-radius:12px;box-shadow:0 2px 8px #0000001a}.categories-section h3,.items-section h3{margin-top:0;margin-bottom:20px;color:#2c3e50;font-size:22px;font-weight:700;padding-bottom:15px;border-bottom:2px solid #f0f0f0}.app-menu-categories-list,.app-menu-items-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:20px}.app-menu-category-card{background:#f8f9fa;border:2px solid #e0e0e0;border-radius:12px;padding:20px;display:flex;align-items:center;justify-content:space-between;gap:15px;transition:all .3s ease;cursor:pointer}.app-menu-category-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a;border-color:var(--primary-color, #3498db)}.app-menu-category-card.active{background:linear-gradient(135deg,#e8f4f8,#f0f8ff);border-color:var(--primary-color, #3498db);box-shadow:0 4px 12px #3498db33}.app-menu-category-content{display:flex;align-items:center;gap:15px;flex:1}.app-menu-category-image,.app-menu-item-image{width:80px;height:80px;object-fit:cover;border-radius:10px;border:2px solid #e0e0e0}.app-menu-category-image-placeholder,.app-menu-item-image-placeholder{width:80px;height:80px;border-radius:10px;background:linear-gradient(135deg,var(--primary-color, #3498db) 0%,#2980b9 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-size:32px;font-weight:700;border:2px solid #e0e0e0}.app-menu-category-info{flex:1}.app-menu-category-info h4{margin:0 0 5px;color:#2c3e50;font-size:18px;font-weight:600}.app-menu-category-item-count{margin:0;color:#7f8c8d;font-size:13px}.app-menu-item-card{background:#fff;border:2px solid #e0e0e0;border-radius:12px;padding:20px;display:flex;flex-direction:column;gap:15px;transition:all .3s ease}.app-menu-item-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000001a;border-color:var(--primary-color, #3498db)}.app-menu-item-card.in-app-menu{background:linear-gradient(135deg,#f0f8ff,#e8f4f8);border-color:var(--primary-color, #3498db)}.app-menu-item-content{display:flex;gap:15px}.app-menu-item-image,.app-menu-item-image-placeholder{width:100px;height:100px;flex-shrink:0}.app-menu-item-info{flex:1}.app-menu-item-info h4{margin:0 0 8px;color:#2c3e50;font-size:18px;font-weight:600}.app-menu-item-description{margin:0 0 10px;color:#7f8c8d;font-size:14px;line-height:1.4}.app-menu-item-prices{display:flex;flex-direction:column;gap:5px}.app-menu-main-price{color:#7f8c8d;font-size:14px}.app-menu-app-price{color:var(--primary-color, #3498db);font-size:16px;font-weight:600}.app-menu-item-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:15px;border-top:1px solid #e0e0e0}.app-menu-toggle-switch{position:relative;display:inline-block;width:50px;height:26px;cursor:pointer}.app-menu-toggle-switch input{opacity:0;width:0;height:0}.toggle-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;transition:.3s;border-radius:26px}.toggle-slider:before{position:absolute;content:"";height:20px;width:20px;left:3px;bottom:3px;background-color:#fff;transition:.3s;border-radius:50%}.app-menu-toggle-switch input:checked+.toggle-slider{background-color:var(--primary-color, #3498db)}.app-menu-toggle-switch input:checked+.toggle-slider:before{transform:translate(24px)}.app-menu-price-editor{display:flex;align-items:center;gap:8px;flex:1}.app-menu-price-editor label{font-size:14px;color:#2c3e50;font-weight:500}.app-price-input{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;width:100px}.currency-label{font-size:14px;color:#7f8c8d;font-weight:500}.app-menu-empty-state{grid-column:1 / -1;text-align:center;padding:60px 20px;color:#7f8c8d}.app-menu-empty-state p{font-size:16px;margin:0}.invoices-list{display:flex;flex-direction:column;gap:15px}.invoice-card{display:grid;grid-template-columns:1fr auto auto;gap:20px;align-items:start;padding:20px;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.invoice-view{max-width:900px;margin:0 auto}.invoice-view-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:30px;padding-bottom:20px;border-bottom:2px solid #e0e0e0}.invoice-view-header h2{margin:0 0 5px;color:#2c3e50}.invoice-view-date{color:#7f8c8d;font-size:14px;margin:0}.invoice-view-section{margin-bottom:25px}.invoice-view-section h3{margin-bottom:15px;color:#2c3e50;font-size:18px;border-bottom:1px solid #e0e0e0;padding-bottom:8px}.invoice-items-table{width:100%;border-collapse:collapse;margin-top:10px}.invoice-items-table th,.invoice-items-table td{padding:12px;text-align:left;border-bottom:1px solid #e0e0e0}.invoice-items-table th{background:#f8f9fa;font-weight:600;color:#2c3e50}.invoice-items-table .text-center{text-align:center}.invoice-items-table .text-right{text-align:right}.invoice-summary{max-width:400px;margin-left:auto;margin-top:20px}.invoice-summary .summary-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid #e0e0e0}.invoice-summary .summary-row.total{font-size:20px;font-weight:700;color:var(--primary-color, #3498db);border-bottom:2px solid #e0e0e0;padding-top:10px;margin-top:10px}.invoice-card{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:start}.invoice-info{flex:1}.invoice-info h4{margin-bottom:5px;color:#2c3e50}.invoice-info p{color:#7f8c8d;font-size:14px}.invoice-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.invoice-details{margin-top:10px}.invoice-detail-item{margin:5px 0;font-size:14px;color:#555}.invoice-detail-item strong{color:#2c3e50;margin-right:5px}.invoice-amount-section{text-align:right;min-width:150px}.invoice-subtotal{font-size:12px;color:#7f8c8d;margin-top:5px}.invoice-amount{font-size:24px;font-weight:700;color:#27ae60}.invoice-actions{display:flex;flex-direction:row;gap:8px;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap}.invoice-status{padding:6px 12px;border-radius:20px;font-size:12px;font-weight:600;text-transform:capitalize;display:inline-block}.status-draft{background:#ecf0f1;color:#7f8c8d}.status-pending{background:#f39c12;color:#fff}.status-confirmed,.status-paid{background:#27ae60;color:#fff}.status-cancelled{background:#e74c3c;color:#fff}.recent-section{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000001a}.recent-list{display:flex;flex-direction:column;gap:10px}.recent-item{padding:15px;background:#f8f9fa;border-radius:5px;display:flex;justify-content:space-between;align-items:center}.modal-overlay{display:none;position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;z-index:1000;align-items:center;justify-content:center}.modal-overlay.active{display:flex}.modal-overlay.fullscreen{align-items:stretch;justify-content:stretch}.modal{background:#fff;border-radius:8px;width:90%;max-width:600px;max-height:90vh;overflow-y:auto;box-shadow:0 4px 20px #0000004d}.modal.fullscreen{width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0;display:flex;flex-direction:column}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #e0e0e0;flex-shrink:0}.modal.fullscreen .modal-header{background:#f8f9fa;border-bottom:2px solid #e0e0e0}.modal-close{background:none;border:none;font-size:24px;cursor:pointer;color:#7f8c8d}.modal-body{padding:20px;flex:1;overflow-y:auto}.modal.fullscreen .modal-body{display:flex;flex-direction:column;gap:20px;overflow:hidden}.form-group{margin-bottom:15px}.form-group label{display:block;margin-bottom:5px;font-weight:500;color:#2c3e50}.form-group input,.form-group textarea,.form-group select{width:100%;padding:10px;border:1px solid #ddd;border-radius:5px;font-size:14px}.form-group textarea{resize:vertical;min-height:80px}.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:20px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.items-form-list{margin-top:15px}.invoice-item-row{display:grid;grid-template-columns:2fr 1fr 1fr 1fr auto;gap:10px;align-items:end;margin-bottom:10px;padding:10px;background:#f8f9fa;border-radius:5px}.invoice-item-row input{width:100%}.btn-remove-item{background:#e74c3c;color:#fff;border:none;padding:10px;border-radius:5px;cursor:pointer}.invoice-builder{display:grid;grid-template-columns:1fr 400px;gap:20px;height:100%;min-height:0}.home-invoice-container{height:calc(100vh - 100px);overflow:hidden}.home-invoice-container .invoice-builder{height:100%}.invoice-menu-section{border-right:1px solid #e0e0e0;padding-right:20px;overflow-y:auto;min-height:0}.invoice-cart-section{display:flex;flex-direction:column;height:100%;overflow-y:auto;min-height:0}.menu-category-tabs{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap;border-bottom:2px solid #e0e0e0;padding-bottom:10px}.category-tab{padding:8px 16px;background:#f8f9fa;border:none;border-radius:5px;cursor:pointer;font-size:14px;transition:all .2s}.category-tab.active{background:var(--primary-color, #3498db);color:#fff}.menu-items-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:15px;margin-bottom:20px}.menu-item-card{background:#fff;border:2px solid #e0e0e0;border-radius:8px;padding:15px;cursor:pointer;transition:all .2s;text-align:center}.menu-item-card:hover{border-color:var(--primary-color, #3498db);transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.menu-item-card.selected{border-color:var(--primary-color, #3498db);background:#f0f8ff}.menu-item-card img{width:100%;height:100px;object-fit:cover;border-radius:5px;margin-bottom:10px}.menu-item-card h4{font-size:14px;margin-bottom:5px}.menu-item-card .price{color:var(--primary-color, #3498db);font-weight:700;font-size:16px}.invoice-cart{background:#f8f9fa;border-radius:8px;padding:20px;flex:1;display:flex;flex-direction:column}.cart-items{flex:1;overflow-y:auto;margin-bottom:20px}.cart-item{display:flex;justify-content:space-between;align-items:center;padding:15px;background:#fff;border-radius:5px;margin-bottom:10px}.cart-item-info{flex:1}.cart-item-info h4{margin-bottom:5px}.cart-item-info p{font-size:12px;color:#7f8c8d}.cart-item-controls{display:flex;align-items:center;gap:10px}.quantity-control{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid #ddd;border-radius:5px;padding:5px}.quantity-btn{background:none;border:none;width:30px;height:30px;cursor:pointer;font-size:18px;color:var(--primary-color, #3498db)}.quantity-input{width:50px;text-align:center;border:none;font-weight:700}.cart-item-price{font-weight:700;color:var(--primary-color, #3498db);min-width:80px;text-align:right}.cart-summary{border-top:2px solid #e0e0e0;padding-top:20px}.summary-row{display:flex;justify-content:space-between;margin-bottom:10px;font-size:14px}.summary-row.total{font-size:20px;font-weight:700;padding-top:10px;border-top:2px solid #e0e0e0;color:var(--primary-color, #3498db)}.discount-controls{display:grid;grid-template-columns:1fr 2fr;gap:10px;margin-bottom:15px}.discount-type,.discount-value{padding:10px;border:1px solid #ddd;border-radius:5px}.settings-container{max-width:800px}.settings-section{background:#fff;padding:25px;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:20px}.settings-section-title{margin:0 0 20px;color:#2c3e50;font-size:18px;font-weight:600;padding-bottom:10px;border-bottom:2px solid #ecf0f1}.settings-section-content{padding-top:10px}.settings-container .form-group{margin-bottom:25px}.settings-container input[type=color]{width:60px;height:40px;border:1px solid #ddd;border-radius:5px;cursor:pointer}.settings-container input[type=text]{padding:10px;border:1px solid #ddd;border-radius:5px;font-size:14px}.settings-container input[type=file]{width:100%;padding:10px;border:1px solid #ddd;border-radius:5px;background:#fff}.best-sellers-section{margin-top:40px;background:#fff;padding:30px;border-radius:8px;box-shadow:0 2px 8px #0000001a}.best-sellers-section h3{margin-top:0;margin-bottom:25px;color:#2c3e50;font-size:24px;font-weight:600}.best-sellers-list{overflow-x:auto}.best-sellers-table{width:100%;border-collapse:collapse;margin-top:15px;background:#fff;border-radius:8px;overflow:hidden}.best-sellers-table thead{background:linear-gradient(135deg,var(--primary-color, #3498db) 0%,#2980b9 100%);color:#fff}.best-sellers-table th{padding:16px 20px;text-align:left;font-weight:600;font-size:14px;text-transform:uppercase;letter-spacing:.5px}.best-sellers-table th:first-child{text-align:center;width:80px}.best-sellers-table th:nth-child(3),.best-sellers-table th:nth-child(4),.best-sellers-table th:nth-child(5){text-align:right}.best-sellers-table tbody tr{border-bottom:1px solid #ecf0f1;transition:background-color .2s ease}.best-sellers-table tbody tr:hover{background:#f8f9fa}.best-sellers-table tbody tr:last-child{border-bottom:none}.best-sellers-table td{padding:16px 20px;font-size:15px;color:#2c3e50}.best-sellers-table td:first-child{text-align:center;font-weight:700;color:var(--primary-color, #3498db);font-size:18px}.best-sellers-table td:nth-child(2){font-weight:600;color:#2c3e50}.best-sellers-table td:nth-child(3),.best-sellers-table td:nth-child(4),.best-sellers-table td:nth-child(5){text-align:right;font-weight:500}.best-sellers-table td:nth-child(4){color:var(--primary-color, #3498db);font-weight:600}.best-sellers-table tbody tr:nth-child(1) td:first-child{background:linear-gradient(135deg,#f39c12,#e67e22);color:#fff;border-radius:50%;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;margin:0 auto}.best-sellers-table tbody tr:nth-child(2) td:first-child{background:linear-gradient(135deg,#95a5a6,#7f8c8d);color:#fff;border-radius:50%;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;margin:0 auto}.best-sellers-table tbody tr:nth-child(3) td:first-child{background:linear-gradient(135deg,#cd7f32,#b87333);color:#fff;border-radius:50%;width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;margin:0 auto}.app-orders-list{padding:20px;display:flex;flex-direction:column;gap:16px}.order-card{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 8px #0000001a;transition:box-shadow .2s,transform .2s}.order-card:hover{box-shadow:0 4px 12px #00000026;transform:translateY(-2px)}.order-header{margin-bottom:16px}.order-header-left{display:flex;flex-direction:column;gap:8px}.order-number-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.order-number-row h4{margin:0;font-size:18px;font-weight:700;color:#1e293b;flex:1}.order-customer-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.order-customer-name{font-size:16px;font-weight:600;color:#334155}.order-phone-link{color:#3498db;text-decoration:none;font-size:14px;font-weight:500;display:flex;align-items:center;gap:4px;transition:color .2s}.order-phone-link:hover{color:#2980b9;text-decoration:underline}.order-meta-row{display:flex;align-items:center;gap:12px;font-size:13px;color:#64748b}.order-date{color:#64748b;font-size:13px}.order-payment-badge{background:#10b981;color:#fff;padding:4px 10px;border-radius:12px;font-size:11px;font-weight:600;text-transform:uppercase}.order-details{margin-bottom:16px;padding-top:16px;border-top:1px solid #e2e8f0}.order-items-preview{margin-bottom:12px;font-size:14px;color:#475569;line-height:1.6}.order-delivery-address{margin-bottom:12px;font-size:13px;color:#64748b;line-height:1.5}.order-total-row{display:flex;justify-content:space-between;align-items:center;padding-top:12px;border-top:1px solid #e2e8f0;margin-top:12px}.order-total-amount{font-size:20px;font-weight:700;color:#1e293b}.order-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:16px;border-top:1px solid #e2e8f0}.status-badge{padding:6px 12px;border-radius:16px;font-size:12px;font-weight:600;text-transform:uppercase;white-space:nowrap}.status-badge.status-pending{background:#fef3c7;color:#92400e}.status-badge.status-preparing{background:#dbeafe;color:#1e40af}.status-badge.status-out_with_delivery{background:#fce7f3;color:#9f1239}.status-badge.status-confirmed{background:#d1fae5;color:#065f46}.order-details-modal{padding:20px}.order-details-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid #e2e8f0}.order-header-info h3{margin:0 0 8px;font-size:24px;font-weight:700;color:#1e293b}.order-timestamps{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#64748b}.order-header-actions{display:flex;align-items:center;gap:12px}.order-details-body{display:flex;flex-direction:column;gap:24px}.order-info-section,.order-items-section,.order-summary-section,.order-payment-section,.order-notes-section{background:#f8fafc;padding:16px;border-radius:8px}.order-info-section h4,.order-items-section h4,.order-summary-section h4,.order-payment-section h4,.order-notes-section h4{margin:0 0 12px;font-size:18px;font-weight:600;color:#1e293b}.customer-details p{margin:8px 0;font-size:14px;color:#475569}.customer-phone-link{color:#3498db;text-decoration:none;font-weight:500}.customer-phone-link:hover{text-decoration:underline}.order-items-table{width:100%;border-collapse:collapse;margin-top:12px;background:#fff;border-radius:8px;overflow:hidden}.order-items-table thead{background:#f1f5f9}.order-items-table th{padding:12px;text-align:left;font-weight:600;font-size:13px;color:#334155;text-transform:uppercase;letter-spacing:.5px}.order-items-table td{padding:12px;border-top:1px solid #e2e8f0;font-size:14px;color:#475569}.order-items-table tr.item-with-discount{background:#fef3c7}.order-item-name{font-weight:500;color:#1e293b}.order-item-description{display:block;font-size:12px;color:#64748b;margin-top:4px;font-style:italic}.text-center{text-align:center}.text-right{text-align:right}.summary-details{margin-top:12px}.summary-row{display:flex;justify-content:space-between;padding:8px 0;font-size:14px;color:#475569}.summary-row.total{font-weight:700;font-size:18px;color:#1e293b;padding-top:12px;margin-top:8px;border-top:2px solid #e2e8f0}.payment-method-badge,.payment-status-badge{display:inline-block;padding:4px 10px;border-radius:12px;font-size:12px;font-weight:600;margin-left:8px}.payment-method-badge{background:#10b981;color:#fff}.payment-status-badge{background:#fef3c7;color:#92400e}.order-notes-text{margin:8px 0 0;padding:12px;background:#fff;border-radius:6px;font-size:14px;color:#475569;line-height:1.6;border-left:3px solid #3498db}body.rtl{direction:rtl;text-align:right}body.ltr{direction:ltr;text-align:left}body.rtl .main-content{padding:20px 45px 20px 30px}body.rtl .app-container{direction:rtl}body.rtl .nav-menu{text-align:right}body.rtl .nav-link{text-align:right;padding-right:20px;padding-left:0}body.rtl .page-header{justify-content:space-between;text-align:right;padding-top:20px}body.rtl .page-header h2{text-align:right;margin:0}body.rtl .page-header>*{text-align:right}body.rtl .btn{text-align:center}body.rtl .form-group{text-align:right}body.rtl .form-group label{text-align:right;display:block}body.rtl .form-group input,body.rtl .form-group select,body.rtl .form-group textarea{text-align:right;direction:rtl}body.rtl table{direction:rtl;text-align:right}body.rtl table th,body.rtl table td{text-align:right}body.rtl table th.text-center,body.rtl table td.text-center{text-align:center!important}body.rtl .text-right{text-align:left!important}body.rtl .text-left{text-align:right!important}body.rtl .text-center{text-align:center!important}body.rtl .modal-content,body.rtl .card,body.rtl .page,body.rtl .page.active{text-align:right;direction:rtl}body.rtl .invoice-builder{direction:rtl;flex-direction:row-reverse}body.rtl .invoice-menu-section{border-right:none;border-left:1px solid #e0e0e0;padding-right:0;padding-left:20px;text-align:right}body.rtl .invoice-cart-section{border-left:none;border-right:1px solid #e0e0e0;padding-left:0;padding-right:20px;text-align:right}body.rtl .cart-summary,body.rtl .login-box{direction:rtl;text-align:right}body.rtl .login-box h1,body.rtl .login-subtitle,body.rtl .login-box label{text-align:right}body.rtl .login-box input{text-align:right;direction:rtl}body.rtl .login-box input::placeholder{text-align:right}body.rtl .login-error{text-align:right;direction:rtl}body.rtl .login-footer{text-align:right}body.rtl .cart-summary .summary-row{flex-direction:row-reverse!important;direction:rtl;display:flex!important;justify-content:space-between}body.rtl .cart-summary .summary-row>span:first-child{text-align:right!important;order:2}body.rtl .cart-summary .summary-row>span:last-child{text-align:left!important;order:1}body.rtl .menu-items-grid,body.rtl .menu-category-tabs{direction:rtl}body.rtl .invoice-actions,body.rtl .form-actions{flex-direction:row-reverse}body.rtl .date-filter,body.rtl .invoice-status{margin-right:10px;margin-left:0}body.rtl .toggle-switch{direction:ltr}body.rtl .dropdown{right:0;left:auto}body.rtl .tooltip{right:100%;left:auto;margin-right:5px;margin-left:0}body.rtl .flex-row,body.rtl .flex-between{flex-direction:row-reverse}body.rtl .ml-auto{margin-left:0;margin-right:auto}body.rtl .mr-auto{margin-right:0;margin-left:auto}body.rtl .pl-10{padding-left:0;padding-right:10px}body.rtl .pr-10{padding-right:0;padding-left:10px}body.rtl *{direction:inherit}body.rtl .stats-grid,body.rtl .charts-section,body.rtl .best-sellers-section,body.rtl .invoices-list,body.rtl .customers-list,body.rtl .offers-list,body.rtl .settings-container{direction:rtl;text-align:right}body.rtl .stat-card{text-align:right;direction:rtl}body.rtl .stat-card h3{text-align:right}body.rtl .chart-container{text-align:right;direction:rtl}body.rtl .chart-container h3{text-align:right}body.rtl .invoice-card{text-align:right;direction:rtl}body.rtl .invoice-card .invoice-info{text-align:right}body.rtl .customer-card,body.rtl .order-card{text-align:right;direction:rtl}body.rtl .menu-container{direction:rtl;text-align:right}body.rtl .categories-section,body.rtl .items-section{text-align:right;direction:rtl}body.rtl .categories-section h3,body.rtl .items-section h3{text-align:right}body.rtl .category-item img,body.rtl .item-card img{margin-right:0!important;margin-left:15px!important}body.rtl .page h2,body.rtl h2,body.rtl .page h3,body.rtl h3,body.rtl .items-header h3{text-align:right}body.rtl .form-row{flex-direction:row-reverse;direction:rtl}body.rtl .summary-row{flex-direction:row-reverse!important;direction:rtl;display:flex;justify-content:space-between}body.rtl .summary-row>span:first-child{text-align:right!important;order:2}body.rtl .summary-row>span:last-child{text-align:left!important;order:1}body.rtl .invoice-view{direction:rtl;text-align:right}body.rtl .invoice-view-header{flex-direction:row-reverse;text-align:right}body.rtl .invoice-view-section{text-align:right;direction:rtl}body.rtl .invoice-view-section h3{text-align:right}body.rtl .invoice-items-table{direction:rtl;text-align:right}body.rtl .invoice-items-table th,body.rtl .invoice-items-table td{text-align:right}body.rtl .invoice-items-table th.text-center,body.rtl .invoice-items-table td.text-center{text-align:center}body.rtl .invoice-items-table th.text-right,body.rtl .invoice-items-table td.text-right{text-align:left}body.rtl .invoice-summary{direction:rtl;text-align:right}body.rtl .invoice-summary .summary-row{flex-direction:row-reverse!important;direction:rtl;display:flex;justify-content:space-between}body.rtl .invoice-summary .summary-row>span:first-child{text-align:right!important;order:2}body.rtl .invoice-summary .summary-row>span:last-child{text-align:left!important;order:1}body.rtl .order-details-modal{direction:rtl;text-align:right}body.rtl .order-details-header{flex-direction:row-reverse;text-align:right}body.rtl .order-items-table{direction:rtl;text-align:right}body.rtl .order-items-table th,body.rtl .order-items-table td{text-align:right}body.rtl .customer-insights-modal{direction:rtl;text-align:right}body.rtl .insights-header{text-align:right}body.rtl .insights-stats-grid{direction:rtl}body.rtl .insight-stat-card{text-align:right;direction:rtl}body.rtl .insights-table{direction:rtl;text-align:right}body.rtl .insights-table th,body.rtl .insights-table td{text-align:right}body.rtl .transactions-list{direction:rtl;text-align:right}body.rtl .transaction-item{flex-direction:row-reverse;text-align:right}
