*{margin:0;padding:0;box-sizing:border-box}:root{--color-primary: #667eea;--color-primary-dark: #5568d3;--color-success: #10b981;--color-success-dark: #059669;--color-danger: #ef4444;--color-danger-dark: #dc2626;--color-warning: #f59e0b;--color-warning-dark: #d97706;--color-bg: #f3f4f6;--color-card: #ffffff;--color-text: #1f2937;--color-text-light: #6b7280;--color-border: #e5e7eb;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;touch-action:manipulation;-webkit-tap-highlight-color:transparent}body{margin:0;background:var(--color-bg);color:var(--color-text);line-height:1.5;min-height:100vh;overscroll-behavior-y:contain}#root{min-height:100vh}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.2}input,textarea,select{font-family:inherit;font-size:1rem}input[type=text],input[type=number],input[type=email],input[type=tel],textarea,select{width:100%;padding:.75rem;border:2px solid var(--color-border);border-radius:8px;font-size:1rem;transition:border-color .2s}input:focus,textarea:focus,select:focus{outline:none;border-color:var(--color-primary)}button{font-family:inherit;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}button:disabled{cursor:not-allowed;opacity:.6}.btn-primary{background:var(--color-primary);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s,transform .1s;min-height:44px}.btn-primary:hover{background:var(--color-primary-dark)}.btn-secondary{background:var(--color-border);color:var(--color-text);border:none;padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s,transform .1s;min-height:44px}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:1000;animation:fadeIn .2s ease-in-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:#fff;border-radius:12px;padding:1.5rem;max-width:400px;width:100%;box-shadow:0 8px 24px #0003;animation:slideUp .3s ease-out}@keyframes slideUp{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}.modal h2{margin:0 0 1.5rem;font-size:1.5rem;color:var(--color-text)}.checkbox-group{margin-bottom:1.25rem}.checkbox-label{display:flex;align-items:center;gap:.75rem;cursor:pointer;padding:.75rem;border-radius:8px;transition:background .2s;margin:0}.checkbox-label:hover{background:#f3f4f6}.checkbox-label input[type=checkbox]{width:20px;height:20px;cursor:pointer;accent-color:#667eea;margin:0}.checkbox-label span{font-weight:500;color:#1f2937;-webkit-user-select:none;user-select:none}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-track{background:var(--color-bg)}::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:4px}::-webkit-scrollbar-thumb:hover{background:#9ca3af}@media(min-width:1024px){body{font-size:1.0625rem}.modal{max-width:500px}.btn-primary,.btn-secondary{min-height:40px;padding:.625rem 1.25rem}:root{touch-action:auto}}@media(min-width:1280px){.modal{max-width:600px}}.home-screen{min-height:100vh;padding:1rem 1rem 5rem}.home-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.home-header h1{font-size:2rem;color:#667eea;margin:0}.settings-btn{background:none;border:none;font-size:1.5rem;cursor:pointer;padding:.5rem;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}.settings-panel{background:#fff;border-radius:8px;padding:1rem;margin-bottom:1rem;box-shadow:0 2px 8px #0000001a}.stores-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;margin-bottom:2rem}.empty-state{text-align:center;padding:3rem 1rem;color:#6b7280;grid-column:1 / -1}.store-card{background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}.store-card:active{transform:scale(.98)}.store-card-content{padding:1.5rem;cursor:pointer;flex:1}.store-card h2{margin:0 0 .5rem;font-size:1.25rem;color:#1f2937}.badge{display:inline-block;background:#667eea;color:#fff;padding:.25rem .75rem;border-radius:12px;font-size:.625rem;font-weight:600;letter-spacing:.5px;margin-bottom:.5rem}.store-stats{display:flex;gap:1rem;margin-top:.75rem;font-size:.875rem;color:#6b7280}.store-card-actions{display:flex;gap:0}.edit-store-btn,.delete-store-btn{background:transparent;border:none;padding:.75rem;cursor:pointer;font-size:1.25rem;transition:background .2s;min-height:44px;flex:1}.edit-store-btn{background:#e0f2fe}.edit-store-btn:hover{background:#bae6fd}.edit-store-btn:active{background:#7dd3fc}.delete-store-btn{background:#fee}.delete-store-btn:hover{background:#fcc}.delete-store-btn:active{background:#faa}.fab{position:fixed;bottom:2rem;right:2rem;width:56px;height:56px;border-radius:50%;background:#667eea;color:#fff;border:none;font-size:2rem;cursor:pointer;box-shadow:0 4px 12px #667eea66;transition:transform .2s,box-shadow .2s;z-index:100}.fab:hover{transform:scale(1.05);box-shadow:0 6px 16px #667eea80}.fab:active{transform:scale(.95)}.modal{background:#fff;border-radius:12px;padding:1.5rem;max-width:400px;width:100%;box-shadow:0 8px 24px #0003}.modal h2{margin:0 0 1.5rem;font-size:1.5rem;color:#1f2937}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:500;color:#374151}.form-group input[type=text],.form-group input[type=number]{width:100%;padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;transition:border-color .2s}.form-group input[type=text]:focus,.form-group input[type=number]:focus{outline:none;border-color:#667eea}.checkbox-group label{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none}.checkbox-group input[type=checkbox]{width:20px;height:20px;cursor:pointer}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end}.btn-primary,.btn-secondary,.danger-btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s,transform .1s;min-height:44px}.btn-primary:hover{background:#5568d3}.btn-primary:active{transform:scale(.98)}.btn-secondary{background:#e5e7eb;color:#374151}.btn-secondary:hover{background:#d1d5db}.btn-secondary:active{transform:scale(.98)}.danger-btn{background:#ef4444;color:#fff;width:100%}.danger-btn:hover{background:#dc2626}.danger-btn:active{transform:scale(.98)}.user-info{margin-bottom:1rem}.user-info p{margin:.5rem 0;font-size:.875rem;color:#374151}.logout-btn{background:#667eea;color:#fff;padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:background .2s;width:100%}.logout-btn:hover{background:#5568d3}.logout-btn:active{transform:scale(.98)}.error-message{background:#fee2e2;border:1px solid #fecaca;color:#991b1b;padding:1rem;border-radius:8px;margin-bottom:1rem;display:flex;justify-content:space-between;align-items:center}.loading-state{text-align:center;padding:3rem 1rem;color:#6b7280;grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;gap:1rem}.form-error{background:#fee2e2;border:1px solid #fecaca;color:#991b1b;padding:.75rem;border-radius:8px;font-size:.875rem;margin-top:1rem}@media(max-width:640px){.stores-grid{grid-template-columns:1fr}.fab{bottom:1.5rem;right:1.5rem}}@media(min-width:768px){.home-screen{padding:2rem;max-width:1400px;margin:0 auto}.home-header h1{font-size:2.5rem}.stores-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:1.5rem}.store-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px #00000026}.store-card:active{transform:translateY(0)}}@media(min-width:1024px){.home-screen{padding:3rem}.stores-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:2rem}.modal{max-width:500px}}.products-tab{padding:1rem 1rem 2rem}.products-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;gap:1rem;flex-wrap:wrap}.inventory-toggle label{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:500;color:#374151}.inventory-toggle input[type=checkbox]{width:20px;height:20px;cursor:pointer}.combos-btn{width:100%;padding:.75rem;margin-bottom:1rem;background:#f59e0b;color:#fff;border:none;border-radius:8px;font-weight:500;cursor:pointer;min-height:44px}.products-list{display:flex;flex-direction:column;gap:1.5rem}.category-group{background:#fff;border-radius:12px;padding:1rem;box-shadow:0 2px 8px #0000001a}.category-header{margin:0 0 1rem;font-size:1rem;font-weight:600;color:#667eea;padding-bottom:.5rem;border-bottom:2px solid #e5e7eb}.product-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid #f3f4f6}.product-item:last-child{border-bottom:none}.product-info{flex:1}.product-name{font-weight:500;color:#1f2937;margin-bottom:.25rem}.product-price{font-size:1.125rem;font-weight:600;color:#10b981;font-family:monospace}.product-inventory{font-size:.875rem;color:#6b7280;margin-top:.25rem}.product-inventory.low-stock{color:#f59e0b;font-weight:500}.product-actions{display:flex;gap:.5rem}.btn-edit,.btn-delete{background:none;border:none;font-size:1.25rem;cursor:pointer;padding:.5rem;min-width:44px;min-height:44px;border-radius:8px;transition:background .2s}.btn-edit:hover{background:#e5e7eb}.btn-edit:active{background:#d1d5db}.btn-delete:hover{background:#fee}.btn-delete:active{background:#fcc}.empty-state{text-align:center;padding:3rem 1rem;color:#6b7280}@media(min-width:768px){.products-tab{padding:2rem;max-width:1200px;margin:0 auto}.products-header{margin-bottom:1.5rem}.category-group{padding:1.5rem}.category-header{font-size:1.125rem;margin-bottom:1.25rem}.product-item{padding:1.25rem}.product-name{font-size:1.0625rem}.product-price{font-size:1.25rem}}@media(min-width:1024px){.products-tab{padding:2.5rem 3rem}.products-list{gap:2rem}.category-group{padding:2rem}.product-item{padding:1.5rem;transition:background .2s}.product-item:hover{background:#f9fafb}.btn-edit:hover,.btn-delete:hover{transform:scale(1.05)}}.sell-tab{display:flex;flex-direction:column;height:calc(100vh - 120px);position:relative}.products-grid-container{flex:1;overflow-y:auto;padding:1rem;padding-bottom:calc(40vh + 2rem)}.combos-section,.category-section{margin-bottom:2rem}.combos-section h3,.category-section h3{margin:0 0 1rem;font-size:1rem;font-weight:600;color:#1f2937;text-transform:uppercase;letter-spacing:.5px;padding-bottom:.5rem;border-bottom:2px solid #e5e7eb}.category-products,.combos-grid,.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:.75rem}.combo-btn{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;border:none;border-radius:12px;padding:1.25rem 1rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;transition:all .2s;box-shadow:0 3px 10px #f59e0b59;min-height:80px;position:relative;overflow:hidden}.combo-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 5px 15px #f59e0b73;background:linear-gradient(135deg,#fbbf24,#f59e0b)}.combo-btn:active:not(:disabled){transform:scale(.97);box-shadow:0 2px 6px #f59e0b4d}.combo-btn:disabled{opacity:.6;cursor:not-allowed}.combo-name{font-weight:600;text-align:center;font-size:.875rem}.combo-price{font-size:1.125rem;font-weight:700;font-family:monospace}.product-btn{background:linear-gradient(135deg,#fff,#f9fafb);border:2px solid #e5e7eb;border-radius:12px;padding:1.25rem 1rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5rem;transition:all .2s;box-shadow:0 2px 6px #00000014;min-height:100px;touch-action:manipulation;position:relative;overflow:hidden}.product-btn:hover:not(:disabled):not(.out-of-stock){transform:translateY(-2px);box-shadow:0 4px 12px #667eea33;border-color:#667eea;background:linear-gradient(135deg,#fff,#eef2ff)}.product-btn:active:not(:disabled):not(.out-of-stock){transform:scale(.97);background:#f3f4f6;border-color:#667eea;box-shadow:0 1px 3px #667eea4d}.product-btn:disabled,.product-btn.out-of-stock{background:#f9fafb;border-color:#e5e7eb;cursor:not-allowed;opacity:.5}.product-btn-name{font-weight:600;text-align:center;color:#1f2937;font-size:.875rem}.product-btn-price{font-size:1.25rem;font-weight:700;color:#10b981;font-family:monospace}.product-btn-stock{font-size:.75rem;color:#6b7280}.product-btn-stock.low{color:#f59e0b;font-weight:600}.cart,.cart-section{background:#fff;border-top:3px solid #667eea;box-shadow:0 -4px 12px #0000001a;max-height:40vh;display:flex;flex-direction:column;position:fixed;bottom:0;left:0;right:0;z-index:10}.cart-header{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid #e5e7eb;flex-shrink:0;background:#fff}.cart-header h3{margin:0;font-size:1.125rem;color:#1f2937}.clear-cart-btn{background:#ef4444;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;min-height:36px;transition:all .2s}.clear-cart-btn:hover{background:#dc2626;transform:translateY(-1px);box-shadow:0 2px 4px #ef44444d}.clear-cart-btn:active{background:#b91c1c;transform:translateY(0)}.cart-items{flex:1 1 auto;overflow-y:auto;padding:1rem;min-height:0;max-height:calc(40vh - 190px)}.cart-item{display:flex;justify-content:space-between;align-items:center;padding:.875rem;background:linear-gradient(135deg,#fff,#f9fafb);border:1px solid #e5e7eb;border-radius:10px;margin-bottom:.625rem;gap:1rem;transition:all .2s;box-shadow:0 1px 3px #0000000d}.cart-item:hover{border-color:#cbd5e0;box-shadow:0 2px 6px #00000014}.cart-item-info{flex:1;min-width:0}.cart-item-name{font-weight:500;color:#1f2937;margin-bottom:.25rem}.cart-item-price{font-size:.875rem;color:#6b7280;font-family:monospace}.cart-item-controls{display:flex;align-items:center;gap:.5rem}.qty-btn{background:#667eea;color:#fff;border:none;width:36px;height:36px;border-radius:8px;font-size:1.25rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s;box-shadow:0 2px 4px #667eea33}.qty-btn:hover{background:#5568d3;transform:translateY(-1px);box-shadow:0 3px 6px #667eea4d}.qty-btn:active{background:#4c51bf;transform:scale(.95);box-shadow:0 1px 2px #667eea33}.qty-btn:disabled{opacity:.5;cursor:not-allowed}.qty-display{min-width:32px;text-align:center;font-weight:700;color:#1f2937;font-size:1rem}.remove-btn{background:#fee2e2;color:#dc2626;border:none;font-size:1.5rem;cursor:pointer;padding:.25rem;min-width:36px;min-height:36px;border-radius:8px;transition:all .2s;display:flex;align-items:center;justify-content:center;font-weight:700;line-height:1}.remove-btn:hover{background:#fecaca;transform:scale(1.05)}.remove-btn:active{background:#fca5a5;transform:scale(.95)}.cart-total{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-top:2px solid #e5e7eb;font-size:1.125rem;font-weight:600;color:#1f2937;flex-shrink:0;background:#fff}.total-amount{font-size:1.5rem;color:#10b981;font-family:monospace;font-weight:700}.checkout-btn{margin:0 1rem 1rem;padding:1rem;background:linear-gradient(135deg,#10b981,#059669);color:#fff;border:none;border-radius:12px;font-size:1.125rem;font-weight:700;cursor:pointer;transition:all .2s;min-height:52px;box-shadow:0 4px 12px #10b9814d;text-transform:uppercase;letter-spacing:.5px;flex-shrink:0}.checkout-btn:hover{background:linear-gradient(135deg,#059669,#047857);transform:translateY(-2px);box-shadow:0 6px 16px #10b98166}.checkout-btn:active{transform:scale(.98);box-shadow:0 2px 6px #10b9814d}.checkout-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}.quantity-modal{max-width:300px}.checkout-modal{max-width:400px}.checkout-summary{background:#f9fafb;border-radius:8px;padding:1rem;margin-bottom:1.5rem}.checkout-item{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:.875rem;color:#6b7280}.checkout-total{display:flex;justify-content:space-between;padding-top:.75rem;margin-top:.75rem;border-top:2px solid #e5e7eb;font-size:1.125rem;color:#1f2937}.btn-complete{background:#10b981}.btn-complete:hover{background:#059669}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:2rem;text-align:center;color:#6b7280}.empty-state p{margin:.5rem 0}.suggestions-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:2px solid #667eea;border-top:none;border-radius:0 0 8px 8px;box-shadow:0 4px 12px #00000026;max-height:200px;overflow-y:auto;z-index:10;margin-top:-2px}.suggestion-item{width:100%;padding:.75rem 1rem;background:#fff;border:none;border-bottom:1px solid #f3f4f6;text-align:left;cursor:pointer;font-size:1rem;color:#1f2937;transition:all .2s;min-height:44px}.suggestion-item:last-child{border-bottom:none}.suggestion-item:hover{background:#f3f4f6;padding-left:1.25rem}.suggestion-item:active{background:#ede9fe}@media(max-width:640px){.combos-grid,.products-grid,.category-products{grid-template-columns:repeat(2,1fr);gap:.75rem}.product-btn,.combo-btn{padding:1.25rem 1rem;min-height:100px}.product-name,.combo-name{font-size:.9375rem}.product-price,.combo-price{font-size:1.125rem}.cart,.cart-section{max-height:50vh}.products-grid-container{padding-bottom:calc(50vh + 2rem)}.cart-items{max-height:calc(50vh - 190px)}}@media(min-width:1024px){.sell-tab{flex-direction:row;height:calc(100vh - 120px)}.products-grid-container{width:70%;border-right:2px solid #e5e7eb;padding:1.5rem 1.5rem 2rem}.combos-grid,.products-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}.product-btn,.combo-btn{padding:1.5rem 1.25rem;min-height:140px}.product-btn-name,.combo-name{font-size:1rem}.product-btn-price,.combo-price{font-size:1.375rem}.cart,.cart-section{position:relative;width:30%;max-height:none;height:100%;border-top:none;border-left:3px solid #667eea;box-shadow:-4px 0 12px #0000001a;bottom:auto;left:auto;right:auto}.cart-items{max-height:calc(100vh - 420px)}}@media(min-width:1280px){.products-grid-container{width:75%;padding-bottom:2rem}.combos-grid,.products-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}.cart,.cart-section{position:relative;width:25%;bottom:auto;left:auto;right:auto}.suggestion-item:hover{transform:translateY(-1px);box-shadow:0 1px 4px #0000001a}}.history-tab{padding:1rem 1rem 2rem;max-height:calc(100vh - 120px);overflow-y:auto}.history-header{margin-bottom:1.5rem;background:#f7fafc;padding:1rem 0}.history-stats{display:flex;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.stat{flex:1;min-width:150px;background:linear-gradient(135deg,#fff,#f9fafb);border:2px solid #e5e7eb;border-radius:12px;padding:1.25rem;display:flex;flex-direction:column;align-items:center;gap:.5rem;box-shadow:0 2px 8px #00000014;transition:all .2s}.stat:hover{transform:translateY(-2px);box-shadow:0 4px 12px #667eea26;border-color:#667eea}.stat-label{font-size:.875rem;color:#6b7280;font-weight:500;text-transform:uppercase;letter-spacing:.5px;order:1}.stat-value{font-size:1.875rem;font-weight:700;color:#667eea;font-family:monospace;order:2}.history-actions{display:flex;gap:.75rem;flex-wrap:wrap}.date-filter-section{background:#fff;border-radius:12px;padding:1.25rem;margin-bottom:1.5rem;border:2px solid #e5e7eb;box-shadow:0 2px 8px #00000014}.date-filter-buttons{display:flex;gap:.75rem;margin-bottom:1rem;flex-wrap:wrap}.filter-btn{flex:1;min-width:100px;padding:.75rem 1rem;border:2px solid #e5e7eb;border-radius:8px;background:#fff;color:#374151;font-weight:600;font-size:.9375rem;cursor:pointer;transition:all .2s;min-height:44px}.filter-btn:hover:not(:disabled){border-color:#667eea;background:#f3f4f6;transform:translateY(-1px)}.filter-btn.active{background:linear-gradient(135deg,#667eea,#5568d3);color:#fff;border-color:#667eea;box-shadow:0 2px 6px #667eea4d}.filter-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.date-picker-group{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.date-picker-group label{font-weight:600;color:#374151;font-size:.9375rem}.date-picker-group input[type=date]{flex:1;min-width:200px;padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:.9375rem;font-weight:500;color:#1f2937;transition:border-color .2s;min-height:44px}.date-picker-group input[type=date]:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.date-picker-group input[type=date]:disabled{opacity:.5;cursor:not-allowed}.export-btn,.clear-btn{flex:1;min-width:140px;padding:.875rem 1.25rem;border:none;border-radius:10px;font-weight:600;font-size:.9375rem;cursor:pointer;min-height:48px;transition:all .2s;box-shadow:0 2px 6px #0000001a;display:flex;align-items:center;justify-content:center;gap:.5rem}.export-btn{background:linear-gradient(135deg,#667eea,#5568d3);color:#fff}.export-btn:hover:not(:disabled){background:linear-gradient(135deg,#5568d3,#4c51bf);transform:translateY(-2px);box-shadow:0 4px 12px #667eea4d}.export-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 4px #667eea33}.clear-btn{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.clear-btn:hover:not(:disabled){background:linear-gradient(135deg,#dc2626,#b91c1c);transform:translateY(-2px);box-shadow:0 4px 12px #ef44444d}.clear-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 4px #ef444433}.export-btn:disabled,.clear-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.export-menu{position:absolute;top:100%;right:0;margin-top:.5rem;background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;overflow:hidden;z-index:10;min-width:200px}.export-menu button{width:100%;padding:.75rem 1rem;border:none;background:#fff;text-align:left;cursor:pointer;border-bottom:1px solid #f3f4f6;min-height:44px}.export-menu button:last-child{border-bottom:none}.export-menu button:hover{background:#f9fafb}.export-menu button:active{background:#f3f4f6}.orders-list{display:flex;flex-direction:column;gap:1rem}.order-card{background:linear-gradient(135deg,#fff,#f9fafb);border:2px solid #e5e7eb;border-radius:12px;padding:1.25rem;box-shadow:0 2px 8px #00000014;transition:all .2s}.order-card:hover{border-color:#cbd5e0;box-shadow:0 4px 12px #0000001f;transform:translateY(-2px)}.order-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1rem;gap:1rem}.order-customer{font-size:1.125rem;font-weight:700;color:#1f2937;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.edited-badge{display:inline-block;background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff;padding:.25rem .625rem;border-radius:12px;font-size:.625rem;font-weight:700;letter-spacing:.75px;text-transform:uppercase;box-shadow:0 2px 4px #f59e0b4d}.payment-badge{display:inline-block;padding:.25rem .625rem;border-radius:12px;font-size:.625rem;font-weight:700;letter-spacing:.75px;text-transform:uppercase;box-shadow:0 2px 4px #0003}.payment-badge.paid{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.payment-badge.unpaid{background:linear-gradient(135deg,#fef2f2,#fee2e2);color:#dc2626;border:1px solid #fecaca}.order-time{font-size:.875rem;color:#6b7280;font-weight:600;font-family:monospace;white-space:nowrap}.order-items{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:10px;padding:1rem;margin-bottom:1rem}.order-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:.625rem;padding:.5rem 0;gap:1rem}.order-item:last-child{margin-bottom:0}.item-name{font-size:.9375rem;font-weight:600;color:#374151;flex:1}.item-details{font-size:.875rem;color:#6b7280;font-family:monospace;font-weight:500;white-space:nowrap}.order-footer{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.order-total{padding:.75rem 1rem;background:linear-gradient(135deg,#eef2ff,#e0e7ff);border:2px solid #c7d2fe;border-radius:10px;font-size:1.125rem;font-weight:700;color:#1f2937;font-family:monospace;box-shadow:0 2px 6px #667eea1a}.order-actions{display:flex;gap:.625rem;flex-wrap:wrap}.payment-btn,.edit-btn,.delete-btn{padding:.625rem 1rem;border:none;border-radius:8px;font-weight:600;font-size:.875rem;cursor:pointer;min-height:40px;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:.375rem;box-shadow:0 2px 4px #00000014}.payment-btn{flex:1;min-width:120px}.payment-btn.paid{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.payment-btn.unpaid{background:linear-gradient(135deg,#fef2f2,#fee2e2);color:#dc2626;border:2px solid #fecaca}.payment-btn.paid:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);transform:translateY(-1px);box-shadow:0 3px 8px #10b9814d}.payment-btn.unpaid:hover:not(:disabled){background:linear-gradient(135deg,#fee2e2,#fecaca);border-color:#fca5a5;transform:translateY(-1px);box-shadow:0 3px 8px #dc262633}.payment-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 1px 3px #00000026}.edit-btn{background:linear-gradient(135deg,#667eea,#5568d3);color:#fff;flex:1}.edit-btn:hover:not(:disabled){background:linear-gradient(135deg,#5568d3,#4c51bf);transform:translateY(-1px);box-shadow:0 3px 8px #667eea40}.edit-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 1px 3px #667eea33}.delete-btn{background:linear-gradient(135deg,#fef2f2,#fee2e2);color:#dc2626;border:2px solid #fecaca;min-width:40px;padding:.625rem}.delete-btn:hover:not(:disabled){background:linear-gradient(135deg,#fee2e2,#fecaca);border-color:#fca5a5;transform:translateY(-1px);box-shadow:0 3px 8px #dc262633}.delete-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 1px 3px #dc262626}.payment-btn:disabled,.edit-btn:disabled,.delete-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.edit-order-modal{max-width:500px;max-height:80vh;overflow-y:auto}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.modal-header h2{margin:0}.edit-items-list{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:10px;padding:1rem}.edit-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:.75rem;gap:1rem;transition:all .2s}.edit-item:hover{border-color:#cbd5e0;box-shadow:0 2px 6px #00000014}.edit-item:last-child{margin-bottom:0}.edit-item-name{flex:1;font-weight:600;color:#1f2937;font-size:.9375rem}.edit-item-controls{display:flex;align-items:center;gap:.625rem}.qty-input{width:60px;text-align:center;padding:.5rem;border:2px solid #e5e7eb;border-radius:6px;font-weight:600;font-size:.9375rem;transition:border-color .2s}.qty-input:focus{outline:none;border-color:#667eea}.item-price{font-size:.9375rem;color:#10b981;font-family:monospace;font-weight:700;min-width:80px;text-align:right}.edit-total{display:flex;justify-content:space-between;align-items:center;padding:1rem 1.25rem;background:linear-gradient(135deg,#eef2ff,#e0e7ff);border:2px solid #c7d2fe;border-radius:10px;margin-bottom:1.5rem;font-size:1.125rem;font-weight:700;color:#1f2937;font-family:monospace;box-shadow:0 2px 6px #667eea26}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:4rem 1rem;gap:1rem}.spinner{width:48px;height:48px;border:4px solid #e5e7eb;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}.empty-state{text-align:center;padding:4rem 1rem;color:#6b7280}.empty-state p{margin:.5rem 0;font-size:1.125rem;font-weight:600}.empty-state .hint{font-size:.9375rem;color:#9ca3af;font-weight:400}.error-message{background:linear-gradient(135deg,#fef2f2,#fee2e2);border:2px solid #fecaca;color:#991b1b;padding:1rem 1.25rem;border-radius:10px;margin-bottom:1rem;display:flex;justify-content:space-between;align-items:center;font-weight:500;box-shadow:0 2px 6px #dc26261a}.error-message button{background:none;border:none;color:#991b1b;font-size:1.5rem;font-weight:700;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:6px;transition:background .2s}.error-message button:hover{background:#991b1b1a}.form-error{background:#fef2f2;border:1px solid #fecaca;color:#991b1b;padding:.75rem;border-radius:8px;font-size:.875rem;margin-top:1rem}@media(min-width:768px){.history-tab{padding:2rem;max-width:1200px;margin:0 auto}.history-stats{gap:1.5rem;margin-bottom:1.5rem}.stat{padding:1.5rem}.stat-value{font-size:2rem}.stat-label{font-size:1rem}.date-filter-section{padding:1.5rem}.date-filter-buttons{margin-bottom:1.25rem}.filter-btn{padding:.875rem 1.25rem;font-size:1rem}.date-picker-group label,.date-picker-group input[type=date]{font-size:1rem}.orders-list{gap:1.5rem}.order-card{padding:1.5rem}.order-customer{font-size:1.25rem}.edit-order-modal{max-width:600px}}@media(min-width:1024px){.history-tab{padding:2.5rem 3rem}.history-stats{gap:2rem}.stat{padding:2rem;transition:transform .2s,box-shadow .2s}.stat:hover{transform:translateY(-2px);box-shadow:0 4px 16px #00000026}.date-filter-section{padding:2rem}.date-filter-buttons{margin-bottom:1.5rem}.filter-btn{padding:1rem 1.5rem;min-width:120px}.orders-list{gap:2rem}.order-card{padding:2rem;transition:transform .2s,box-shadow .2s}.order-card:hover{transform:translateY(-2px);box-shadow:0 4px 16px #00000026}.edit-order-modal{max-width:700px}}.store-screen{min-height:100vh;display:flex;flex-direction:column}.store-header{display:flex;align-items:center;justify-content:space-between;padding:1rem;background:#fff;box-shadow:0 2px 4px #0000001a;position:sticky;top:0;z-index:100}.store-header h1{font-size:1.25rem;color:#1f2937;margin:0}.back-btn,.store-switch-btn{background:none;border:none;font-size:1.5rem;cursor:pointer;padding:.5rem;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;color:#667eea;transition:transform .2s,background .2s}.back-btn:hover,.store-switch-btn:hover{background:#f3f4f6;border-radius:8px}.back-btn:active,.store-switch-btn:active{transform:scale(.95)}.tabs{display:flex;background:#fff;border-bottom:2px solid #e5e7eb;position:sticky;top:60px;z-index:99}.tab{flex:1;padding:1rem;border:none;background:none;font-size:1rem;font-weight:500;color:#6b7280;cursor:pointer;border-bottom:3px solid transparent;transition:color .2s,border-color .2s;min-height:44px}.tab:hover{color:#667eea}.tab.active{color:#667eea;border-bottom-color:#667eea}.tab-content{flex:1;overflow-y:auto}.error-state{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100vh;padding:2rem;text-align:center}.error-state p{font-size:1.25rem;color:#6b7280;margin-bottom:1rem}.error-state button{padding:.75rem 1.5rem;background:#667eea;color:#fff;border:none;border-radius:8px;font-size:1rem;cursor:pointer;min-height:44px}.store-switcher-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:flex-start;justify-content:center;padding-top:70px;z-index:1000;animation:fadeIn .2s ease-in-out}.store-switcher-menu{background:#fff;border-radius:12px;padding:1rem;max-width:400px;width:calc(100% - 2rem);box-shadow:0 8px 24px #0003;animation:slideDown .3s ease-out}@keyframes slideDown{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}.store-switcher-menu h3{margin:0 0 1rem;font-size:1.125rem;color:#1f2937}.store-switcher-list{display:flex;flex-direction:column;gap:.5rem;max-height:60vh;overflow-y:auto}.store-switcher-item{background:#fff;border:2px solid #e5e7eb;border-radius:8px;padding:1rem;cursor:pointer;text-align:left;transition:all .2s;min-height:44px}.store-switcher-item:hover:not(:disabled){border-color:#667eea;background:#f9fafb}.store-switcher-item:active:not(:disabled){transform:scale(.98)}.store-switcher-item.active{background:#ede9fe;border-color:#667eea;cursor:default}.store-switcher-item:disabled{opacity:.7;cursor:not-allowed}.store-switcher-name{font-weight:600;color:#1f2937;margin-bottom:.25rem}.store-switcher-info{font-size:.875rem;color:#6b7280}@media(min-width:768px){.store-header{padding:1.25rem 2rem}.store-header h1{font-size:1.5rem}.tabs{top:70px}.tab{padding:1.25rem 1.5rem;font-size:1.0625rem}.store-switcher-menu{max-width:500px}.store-switcher-item:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 2px 8px #0000001a}}@media(min-width:1024px){.store-header{padding:1.5rem 3rem}.store-header h1{font-size:1.75rem}.tab{padding:1.5rem 2rem;transition:color .2s,border-color .2s,background .2s}.tab:hover{background:#f9fafb}.tab.active:hover{background:#fff}.store-switcher-overlay{padding-top:90px}.store-switcher-menu{max-width:600px}}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);padding:20px}.login-container{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;padding:40px;width:100%;max-width:400px;animation:slideUp .3s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.login-header{text-align:center;margin-bottom:32px}.login-logo{width:80px;height:80px;margin-bottom:16px;border-radius:16px;box-shadow:0 4px 12px #0000001a}.login-header h1{margin:0 0 8px;font-size:28px;color:#1a202c}.login-header p{margin:0;color:#718096;font-size:14px}.login-form{display:flex;flex-direction:column;gap:20px}.login-error{background:#fee;border:1px solid #fcc;color:#c33;padding:12px;border-radius:8px;font-size:14px;text-align:center}.form-group{display:flex;flex-direction:column;gap:8px}.form-group label{font-size:14px;font-weight:600;color:#4a5568}.form-group input{padding:12px 16px;border:2px solid #e2e8f0;border-radius:8px;font-size:16px;transition:all .2s}.form-group input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.form-group input:disabled{background:#f7fafc;cursor:not-allowed}.login-button{padding:14px 24px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s;margin-top:8px}.login-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 20px #667eea66}.login-button:active:not(:disabled){transform:translateY(0)}.login-button:disabled{opacity:.6;cursor:not-allowed}.login-footer{margin-top:24px;padding-top:24px;border-top:1px solid #e2e8f0}.demo-credentials{text-align:center;font-size:13px;color:#718096;margin:0;line-height:1.6}.demo-credentials strong{color:#4a5568}@media(max-width:480px){.login-container{padding:32px 24px}.login-header h1{font-size:24px}.login-logo{width:64px;height:64px}}.admin-screen{min-height:100vh;background:#f7fafc}.admin-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:1.5rem 2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 8px #0000001a}.admin-header h1{margin:0;font-size:1.75rem}.admin-header .logout-btn{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.5rem 1.5rem;border-radius:6px;cursor:pointer;font-size:1rem;transition:background .2s}.admin-header .logout-btn:hover{background:#ffffff4d}.admin-tabs{display:flex;gap:.5rem;padding:1rem 2rem 0;background:#fff;border-bottom:2px solid #e2e8f0}.admin-tabs .tab{padding:.75rem 1.5rem;background:none;border:none;border-bottom:3px solid transparent;cursor:pointer;font-size:1rem;font-weight:500;color:#718096;transition:all .2s}.admin-tabs .tab:hover{color:#667eea}.admin-tabs .tab.active{color:#667eea;border-bottom-color:#667eea}.admin-content{padding:2rem;max-width:1400px;margin:0 auto}.content-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.content-header h2{margin:0;font-size:1.5rem;color:#1a202c}.error-message{background:#fee2e2;border:1px solid #fecaca;color:#991b1b;padding:1rem;border-radius:8px;margin:1rem 2rem;display:flex;justify-content:space-between;align-items:center}.error-message button{background:none;border:none;color:#991b1b;font-size:1.5rem;cursor:pointer;padding:0;width:30px;height:30px}.loading-state{text-align:center;padding:3rem;display:flex;flex-direction:column;align-items:center;gap:1rem}.spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top-color:#667eea;border-radius:50%;animation:spin 1s linear infinite}.empty-state{text-align:center;padding:3rem;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a}.empty-state p{margin:.5rem 0;color:#6b7280}.empty-state .hint{font-size:.875rem;color:#9ca3af}.data-table{width:100%;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000001a;border-collapse:collapse}.data-table thead{background:#f7fafc;border-bottom:2px solid #e2e8f0}.data-table th{padding:1rem;text-align:left;font-weight:600;color:#4a5568;font-size:.875rem;text-transform:uppercase;letter-spacing:.5px}.data-table tbody tr{border-bottom:1px solid #e2e8f0;transition:background .2s}.data-table tbody tr:hover{background:#f7fafc}.data-table td{padding:1rem;color:#2d3748}.role-badge,.status-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.role-badge.admin{background:#fef3c7;color:#92400e}.role-badge.user{background:#dbeafe;color:#1e40af}.status-badge.active{background:#d1fae5;color:#065f46}.status-badge.inactive{background:#fee2e2;color:#991b1b}.btn-primary,.btn-secondary,.btn-toggle{padding:.5rem 1rem;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.btn-primary{background:#667eea;color:#fff}.btn-primary:hover:not(:disabled){background:#5568d3}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:#e2e8f0;color:#4a5568}.btn-secondary:hover:not(:disabled){background:#cbd5e0}.btn-toggle.deactivate{background:#fef3c7;color:#92400e}.btn-toggle.deactivate:hover:not(:disabled){background:#fde68a}.btn-toggle.activate{background:#d1fae5;color:#065f46}.btn-toggle.activate:hover:not(:disabled){background:#a7f3d0}.action-buttons{display:flex;gap:.5rem;flex-wrap:wrap}.btn-change-password{padding:.5rem .75rem;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;background:#dbeafe;color:#1e40af;min-height:36px}.btn-change-password:hover:not(:disabled){background:#bfdbfe}.btn-change-password:disabled{opacity:.5;cursor:not-allowed}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:1000}.modal{background:#fff;border-radius:12px;padding:1.5rem;max-width:500px;width:100%;box-shadow:0 8px 24px #0003;max-height:90vh;overflow-y:auto}.modal h2{margin:0 0 1.5rem;font-size:1.5rem;color:#1a202c}.form-group{margin-bottom:1.25rem}.form-group label{display:block;margin-bottom:.5rem;font-weight:500;color:#374151;font-size:.875rem}.form-group input,.form-group select{width:100%;padding:.75rem;border:2px solid #e5e7eb;border-radius:8px;font-size:1rem;transition:border-color .2s}.form-group input:focus,.form-group select:focus{outline:none;border-color:#667eea}.form-group input:disabled,.form-group select:disabled{background:#f7fafc;cursor:not-allowed}.modal-actions{display:flex;gap:.75rem;justify-content:flex-end;margin-top:1.5rem}@media(max-width:768px){.admin-header{padding:1rem}.admin-header h1{font-size:1.25rem}.admin-tabs{padding:.5rem 1rem 0}.admin-content{padding:1rem}.content-header{flex-direction:column;align-items:flex-start;gap:1rem}.data-table{font-size:.875rem}.data-table th,.data-table td{padding:.75rem .5rem}.data-table thead{display:none}.data-table tbody tr{display:block;margin-bottom:1rem;border:1px solid #e2e8f0;border-radius:8px}.data-table td{display:block;text-align:right;padding:.5rem;border-bottom:1px solid #f7fafc}.data-table td:before{content:attr(data-label);float:left;font-weight:600;color:#4a5568}.data-table td:last-child{border-bottom:none}}.action-btn{padding:.5rem 1rem;border:none;border-radius:6px;font-weight:600;font-size:.875rem;cursor:pointer;transition:all .2s;min-height:36px}.action-btn.edit-btn{background:linear-gradient(135deg,#667eea,#5568d3);color:#fff;box-shadow:0 2px 4px #667eea33}.action-btn.edit-btn:hover:not(:disabled){background:linear-gradient(135deg,#5568d3,#4c51bf);transform:translateY(-1px);box-shadow:0 3px 6px #667eea4d}.action-btn.edit-btn:active:not(:disabled){transform:translateY(0);box-shadow:0 1px 3px #667eea33}.action-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.app{min-height:100vh}.app-loading{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;gap:20px}.loading-spinner{width:50px;height:50px;border:4px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-loading p{font-size:18px;font-weight:500;margin:0}.admin-store-header{display:flex;align-items:center;gap:1rem;padding:.75rem 1rem;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.back-to-admin-btn{padding:.5rem 1rem;border:none;background:#fff3;color:#fff;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background .2s}.back-to-admin-btn:hover{background:#ffffff4d}.admin-store-info{font-size:.9rem;font-weight:500}
