* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Roboto', sans-serif; } body { background: #f5f7fa; min-height: 100vh; } /* Header */ .header { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); padding: clamp(4px, 1.5vh, 12px) clamp(10px, 2vw, 25px); box-shadow: 0 3px 15px rgba(52, 152, 219, 0.3); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 100; } .header-left { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 20px); } .header-right { display: flex; gap: 10px; } .btn-back { display: inline-block; flex-shrink: 0; text-decoration: none; white-space: nowrap; padding: clamp(6px, 1.2vh, 10px) clamp(12px, 1.5vw, 18px); background: rgba(255, 255, 255, 0.2); border: none; border-radius: 8px; cursor: pointer; font-weight: 500; color: white; transition: all 0.3s; } .btn-back:hover { background: rgba(255, 255, 255, 0.3); } .table-pos-row { display: flex; align-items: center; gap: 20px; } .table-info h1 { font-size: clamp(16px, 2.5vh, 22px); color: white; margin: 0; } .custom-name-display { font-size: clamp(14px, 2vh, 18px); color: rgba(255, 255, 255, 0.9); font-weight: 400; cursor: pointer; padding: 2px 6px; border-radius: 4px; transition: background 0.2s; } .custom-name-display:hover { background: rgba(255, 255, 255, 0.15); } .custom-name-edit-btn { background: rgba(255, 255, 255, 0.15); border: none; color: rgba(255, 255, 255, 0.8); cursor: pointer; font-size: 14px; padding: 4px 8px; border-radius: 4px; transition: all 0.2s; } .custom-name-edit-btn:hover { background: rgba(255, 255, 255, 0.3); color: white; } .pos-display { display: flex; align-items: center; gap: 10px; } .pos-display span { font-size: clamp(14px, 2vh, 18px); font-weight: 600; color: #3498db; padding: clamp(4px, 0.8vh, 6px) clamp(10px, 1.2vw, 16px); background: #f0f3ff; border-radius: 8px; } .btn-show-all-pos { padding: clamp(5px, 1vh, 8px) clamp(10px, 1.2vw, 16px); background: #3498db; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: clamp(13px, 1.8vh, 15px); font-weight: 600; transition: all 0.3s; } .btn-show-all-pos:hover { background: #5568d3; transform: translateY(-1px); } .table-info p { font-size: clamp(11px, 1.5vh, 13px); color: rgba(255, 255, 255, 0.8); margin-top: 3px; } /* Mobile buttons row - hidden on desktop, shown on mobile */ .mobile-buttons-row { display: none; width: 100%; align-items: center; justify-content: space-between; gap: 5px; } .mobile-buttons-row .order-type-btn { flex: 1; justify-content: center; padding: 5px 6px; gap: 3px; } .mobile-buttons-row .order-type-icon { font-size: 16px; } .mobile-buttons-row .order-type-label { font-size: 10px; } .mobile-buttons-row .btn-view-toggle, .mobile-buttons-row .btn-logout { padding: 5px 8px; font-size: 11px; flex: 0 0 auto; } /* Order Type Icons */ .order-type-icons { display: flex; gap: clamp(5px, 0.8vw, 10px); margin-left: clamp(12px, 2vw, 25px); padding-left: clamp(12px, 2vw, 25px); border-left: 2px solid rgba(255, 255, 255, 0.3); } .order-type-btn { display: flex; flex-direction: row; align-items: center; gap: clamp(4px, 0.8vh, 8px); padding: clamp(5px, 1vh, 8px) clamp(10px, 1.2vw, 16px); background: rgba(255, 255, 255, 0.15); border: 2px solid rgba(255, 255, 255, 0.3); border-radius: 10px; cursor: pointer; transition: all 0.2s ease; } .order-type-icon { font-size: clamp(20px, 3vh, 28px); line-height: 1; } .order-type-label { font-size: clamp(11px, 1.5vh, 14px); font-weight: 600; color: rgba(255, 255, 255, 0.9); white-space: nowrap; } .order-type-btn:hover { background: rgba(255, 255, 255, 0.25); border-color: rgba(255, 255, 255, 0.5); } .order-type-btn:hover .order-type-label { color: white; } .order-type-btn.active { background: white; border-color: white; } .order-type-btn.active .order-type-label { color: #3498db; } /* Always visible POS Selector Row */ .pos-selector-row { background: white; border-bottom: 1px solid #e0e0e0; padding: clamp(5px, 1vh, 10px) clamp(10px, 1.5vw, 20px); } .pos-buttons-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; scrollbar-color: #ccc transparent; } .pos-buttons-scroll::-webkit-scrollbar { height: 6px; } .pos-buttons-scroll::-webkit-scrollbar-track { background: transparent; } .pos-buttons-scroll::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; } .pos-buttons-scroll::-webkit-scrollbar-thumb:hover { background: #aaa; } .pos-tab-button { flex-shrink: 0; padding: clamp(5px, 0.8vh, 8px) clamp(10px, 1.5vw, 18px); background: #f5f5f5; border: 2px solid #e0e0e0; border-radius: 20px; cursor: pointer; font-size: clamp(11px, 1.5vh, 13px); font-weight: 500; color: #555; transition: all 0.2s; white-space: nowrap; } .pos-tab-button:hover { background: #e8ebff; border-color: #3498db; color: #3498db; } .pos-tab-button.active { background: #3498db; border-color: #3498db; color: white; } /* Unclosed POS indicator - yesterday not closed */ .pos-tab-button.pos-unclosed { background: #fff3cd; border-color: #ffc107; color: #856404; position: relative; } .pos-tab-button.pos-unclosed::after { content: '⚠'; position: absolute; top: -5px; right: -5px; font-size: 12px; background: #dc3545; color: white; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; } .pos-tab-button.pos-unclosed:hover { background: #ffe69c; border-color: #e0a800; } .pos-tab-button.pos-unclosed.active { background: #ffc107; border-color: #e0a800; color: #212529; } /* Collapsible POS Selector (kept for compatibility) */ .pos-selector-collapse { background: white; border-bottom: 2px solid #e0e0e0; box-shadow: 0 2px 8px rgba(0,0,0,0.1); overflow: hidden; transition: all 0.3s ease; } .pos-selector-content { padding: clamp(8px, 1.2vh, 15px) clamp(12px, 2vw, 25px); } .pos-buttons-container { display: flex; flex-wrap: wrap; gap: 10px; } .pos-button { padding: clamp(6px, 1.2vh, 10px) clamp(12px, 1.5vw, 20px); background: #f5f5f5; border: 2px solid #e0e0e0; border-radius: 8px; cursor: pointer; font-size: clamp(12px, 1.8vh, 14px); font-weight: 500; color: #333; transition: all 0.3s; } .pos-button:hover { background: #f0f3ff; border-color: #3498db; transform: translateY(-2px); } .pos-button.active { background: #3498db; border-color: #3498db; color: white; } .btn-view-toggle, .btn-logout { padding: clamp(6px, 1.2vh, 10px) clamp(12px, 1.5vw, 18px); border: none; border-radius: 8px; cursor: pointer; font-weight: 500; transition: all 0.3s; } .btn-view-toggle { background: rgba(255, 255, 255, 0.2); color: white; } .btn-view-toggle:hover { background: rgba(255, 255, 255, 0.3); } .btn-logout { background: rgba(255, 107, 107, 0.9); color: white; } .btn-logout:hover { background: #ff6b6b; } /* Main Container */ .main-container { display: flex; height: calc(100vh - clamp(60px, 15vh, 130px)); } /* Left Panel */ .left-panel { flex: 1; padding: clamp(8px, 1.5vh, 20px); overflow: hidden; background: #f5f7fa; display: flex; flex-direction: column; } .pos-selector { background: white; padding: clamp(10px, 1.5vh, 20px); border-radius: 12px; margin-bottom: clamp(10px, 1.5vh, 20px); box-shadow: 0 2px 8px rgba(0,0,0,0.05); } .pos-selector label { display: block; font-weight: 600; margin-bottom: 10px; color: #333; } .pos-selector select { width: 100%; padding: clamp(8px, 1.5vh, 12px) clamp(10px, 1.2vw, 16px); border: 2px solid #e0e0e0; border-radius: 8px; font-size: clamp(13px, 2vh, 15px); cursor: pointer; transition: all 0.3s; } .pos-selector select:focus { outline: none; border-color: #3498db; } /* Search and Categories Container */ .search-categories-container { background: white; padding: clamp(6px, 1vh, 10px) clamp(8px, 1.2vw, 15px); border-radius: 10px; margin-bottom: clamp(8px, 1.2vh, 15px); box-shadow: 0 2px 8px rgba(0,0,0,0.05); display: flex; gap: 12px; align-items: flex-start; flex-shrink: 0; } .search-section { min-width: 220px; flex-shrink: 0; } .search-section input { width: 100%; padding: clamp(5px, 0.8vh, 8px) clamp(8px, 1vw, 12px); border: 2px solid #e0e0e0; border-radius: 6px; font-size: clamp(12px, 1.8vh, 14px); } .search-section input:focus { outline: none; border-color: #3498db; } /* Category Tabs */ .category-tabs { flex: 1; display: flex; flex-direction: column; min-width: 0; /* Allow flex item to shrink below content size */ overflow: hidden; /* Prevent overflow from container */ } .category-row { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; /* Keep categories in one line */ overflow-x: auto; /* Allow horizontal scrolling */ overflow-y: hidden; padding-bottom: 5px; min-width: 0; /* allow flex item to shrink */ } .category-row::-webkit-scrollbar { height: 6px; } .category-row::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 3px; } .category-row::-webkit-scrollbar-thumb { background: #888; border-radius: 3px; } .category-row::-webkit-scrollbar-thumb:hover { background: #555; } .category-tab { padding: clamp(5px, 0.8vh, 8px) clamp(10px, 1.2vw, 16px); background: #f5f5f5; border: 2px solid #e0e0e0; border-radius: 6px; cursor: pointer; font-size: clamp(12px, 1.8vh, 14px); font-weight: 500; color: #333; transition: all 0.3s; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; gap: 6px; } .category-tab:hover { background: #e8ebfd; border-color: #3498db; } .category-tab.active { background: #3498db; color: white; border-color: #3498db; } .category-image { width: 24px; height: 24px; object-fit: cover; border-radius: 4px; flex-shrink: 0; } .category-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; flex-shrink: 0; } .btn-show-all-categories { padding: 8px 16px; background: #3498db; color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; transition: all 0.3s; white-space: nowrap; flex-shrink: 0; } .btn-show-all-categories:hover { background: #5568d3; transform: translateY(-1px); } /* Categories Collapse */ .categories-collapse { margin-top: 10px; padding: 12px; background: #f8f9fa; border-radius: 10px; border: 1px solid #e0e0e0; box-shadow: 0 4px 12px rgba(0,0,0,0.08); max-height: 45vh; overflow-y: auto; overflow-x: hidden; animation: slideDown 0.2s ease-out; } @keyframes slideDown { from { opacity: 0; max-height: 0; } to { opacity: 1; max-height: 45vh; } } .categories-collapse::-webkit-scrollbar { width: 6px; } .categories-collapse::-webkit-scrollbar-track { background: transparent; border-radius: 3px; } .categories-collapse::-webkit-scrollbar-thumb { background: #c0c0c0; border-radius: 3px; } .categories-collapse::-webkit-scrollbar-thumb:hover { background: #999; } .categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; } .category-button { padding: 10px 12px; background: #ffffff; border: 2px solid #e0e0e0; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 500; color: #333; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; min-height: 44px; overflow: hidden; word-break: break-word; } .category-button:hover { background: #e8ebfd; border-color: #3498db; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15); } .category-button.active { background: #3498db; border-color: #3498db; color: white; box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3); } .category-button .category-image { width: 28px; height: 28px; border-radius: 6px; } .category-button .category-icon { width: 28px; height: 28px; font-size: 20px; } /* Items Container */ .items-container { background: white; padding: clamp(10px, 1.5vh, 20px); border-radius: 12px; min-height: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.05); flex: 1; overflow-y: auto; } .items-placeholder { text-align: center; padding: clamp(40px, 12vh, 100px) clamp(10px, 1.5vw, 20px); color: #999; } .placeholder-icon { font-size: clamp(40px, 8vh, 64px); margin-bottom: clamp(10px, 2vh, 20px); } /* Items List View */ .items-list { display: flex; flex-direction: column; gap: 6px; } .item-card-list { display: flex; justify-content: space-between; align-items: center; padding: clamp(6px, 1.2vh, 10px) clamp(8px, 1vw, 14px); border: 1px solid #e0e0e0; border-radius: 8px; cursor: pointer; transition: all 0.3s; } .item-card-list:hover { filter: brightness(0.95); transform: translateX(3px); box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .item-card-left { flex: 1; } .item-card-name { font-weight: 600; font-size: clamp(13px, 2vh, 15px); color: #333; margin-bottom: 2px; } .item-card-category { font-size: clamp(11px, 1.5vh, 12px); color: #666; } .item-card-price { font-size: clamp(13px, 2vh, 15px); font-weight: 700; color: #3498db; } /* Available quantity column (supermarket/retail list view) */ .item-card-qty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 74px; margin: 0 10px; padding: 2px 8px; border-left: 1px solid #e0e0e0; border-right: 1px solid #e0e0e0; } .item-card-qty-label { font-size: clamp(9px, 1.2vh, 10px); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: #999; white-space: nowrap; } .item-card-qty-value { font-size: clamp(13px, 2vh, 15px); font-weight: 700; color: #2e7d32; } .item-card-qty--out .item-card-qty-value { color: #c0392b; } /* Items Grid View */ .items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 15px; } .item-card-grid { background: white; border: 2px solid #e0e0e0; border-radius: 12px; padding: clamp(10px, 2vh, 20px); text-align: center; cursor: pointer; transition: all 0.3s; } .item-card-grid:hover { filter: brightness(0.95); transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.15); } .item-card-grid-icon { font-size: clamp(36px, 6vh, 48px); margin-bottom: clamp(6px, 1vh, 12px); } .item-card-grid-name { font-weight: 600; font-size: clamp(13px, 2vh, 15px); color: #333; margin-bottom: 8px; } .item-card-grid-price { font-size: clamp(14px, 2.2vh, 18px); font-weight: 700; color: #3498db; } /* Right Panel - Cart */ .right-panel { width: clamp(280px, 32vw, 450px); background: white; box-shadow: -2px 0 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; } .cart-header { padding: clamp(10px, 1.5vh, 20px); border-bottom: 2px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; } .cart-header h2 { font-size: clamp(16px, 2.5vh, 20px); color: #333; } .btn-clear-cart { padding: clamp(5px, 0.8vh, 8px) clamp(10px, 1.2vw, 16px); background: #ff6b6b; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: clamp(11px, 1.5vh, 13px); font-weight: 500; } .btn-clear-cart:hover { background: #ee5555; } /* Delivery Client Display - shown when delivery is selected from header */ .delivery-client-display { padding: 12px 20px; background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); border-bottom: 2px solid #2980b9; } .delivery-client-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .delivery-client-name { font-weight: 600; color: white; font-size: 14px; } .delivery-client-location { color: rgba(255, 255, 255, 0.85); font-size: 13px; background: rgba(255, 255, 255, 0.15); padding: 3px 10px; border-radius: 12px; } .btn-change-client { margin-left: auto; padding: 5px 12px; background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 5px; cursor: pointer; font-size: 12px; transition: all 0.2s ease; } .btn-change-client:hover { background: rgba(255, 255, 255, 0.3); } .delivery-courier-name { color: rgba(255, 255, 255, 0.9); font-size: 13px; background: rgba(255, 255, 255, 0.2); padding: 3px 10px; border-radius: 12px; } .cart-items { flex: 1; overflow-y: auto; padding: clamp(10px, 1.5vh, 20px); } .cart-empty { text-align: center; padding: clamp(30px, 10vh, 80px) clamp(10px, 1.5vw, 20px); color: #999; } .empty-icon { font-size: clamp(40px, 8vh, 64px); margin-bottom: clamp(8px, 1.5vh, 15px); } .empty-subtitle { font-size: 13px; } /* Notepad-style list */ .notepad-list { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; overflow: hidden; } .notepad-item { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; padding: 8px 12px !important; border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.15s; gap: 8px !important; background: #fff; } .notepad-item:last-child { border-bottom: none; } .notepad-item:hover { background: #f8f9ff; } .notepad-item.selected { background: #e8ebfd; border-left: 3px solid #3498db; padding-left: 9px !important; } /* Waiter grouping sections */ .waiter-section { margin-bottom: 10px; } .waiter-header { background: #9e9e9e; color: #fff; padding: 6px 12px; font-size: 12px; font-weight: 600; border-radius: 4px; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; } .kot-header { background: #f5f5f5; color: #666; padding: 4px 12px; font-size: 11px; margin-bottom: 3px; border-left: 3px solid #9e9e9e; font-weight: 500; } .notepad-qty { font-weight: 700; color: #3498db; min-width: 32px; font-size: clamp(13px, 2vh, 15px); flex-shrink: 0; } .notepad-name { flex: 1 1 auto; font-size: clamp(13px, 2vh, 15px); color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } .item-notes-text { font-size: clamp(11px, 1.5vh, 13px); color: #888; font-style: italic; flex-shrink: 0; white-space: nowrap; } .notepad-price { font-weight: 600; color: #3498db; font-size: clamp(13px, 2vh, 15px); min-width: 60px; text-align: right; flex-shrink: 0; } .notepad-remove { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 18px; padding: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; opacity: 0.5; transition: opacity 0.15s; flex-shrink: 0; } .notepad-remove:hover { opacity: 1; } /* Selected item controls panel */ .selected-item-controls { background: #f8f9ff; border: 2px solid #3498db; border-radius: 10px; padding: 12px; margin-top: 10px; } .selected-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 600; color: #333; } .close-controls { background: none; border: none; color: #999; cursor: pointer; font-size: 20px; padding: 0; } .close-controls:hover { color: #ff6b6b; } .selected-item-actions { display: flex; gap: 10px; align-items: center; } .notes-input { flex: 1; padding: 8px 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; } .quantity-controls { display: flex; gap: 8px; align-items: center; } .qty-btn { width: 32px; height: 32px; background: #3498db; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; } .qty-btn:hover { background: #5568d3; } .qty-display { min-width: 30px; text-align: center; font-weight: 600; font-size: 15px; } /* Inline item controls (appears under selected item) */ .inline-item-controls { background: #f0f3ff; border-left: 3px solid #3498db; padding: 10px 12px; margin: 0; border-bottom: 1px solid #e0e0e0; } .inline-item-controls .selected-item-actions { display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; } .inline-item-controls .quantity-controls { display: flex; gap: 5px; align-items: center; flex-shrink: 0; } .inline-item-controls .qty-btn { width: 28px; height: 28px; font-size: 16px; } .inline-item-controls .qty-display { min-width: 24px; font-size: 14px; } .inline-item-controls .notes-input { flex: 1; min-width: 80px; padding: 6px 8px; font-size: 13px; } .close-inline-controls { background: none; border: none; color: #999; cursor: pointer; font-size: 18px; padding: 0 4px; flex-shrink: 0; } .close-inline-controls:hover { color: #ff6b6b; } /* Legacy styles kept for compatibility */ .cart-item { background: #f8f9ff; border: 2px solid #e8ebfd; border-radius: 10px; padding: 15px; margin-bottom: 12px; display: none; } .cart-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; } .cart-item-name { font-weight: 600; font-size: 15px; color: #333; } .cart-item-remove { background: none; border: none; color: #ff6b6b; cursor: pointer; font-size: 18px; padding: 0 5px; } .cart-item-controls { display: flex; justify-content: space-between; align-items: center; } .cart-item-total { font-weight: 700; font-size: 16px; color: #3498db; } .cart-item-notes { margin-top: 10px; } .cart-item-notes input { width: 100%; padding: 8px 10px; border: 1px solid #e0e0e0; border-radius: 6px; font-size: 13px; } .cart-summary { padding: clamp(10px, 1.5vh, 20px); border-top: 2px solid #f0f0f0; border-bottom: 2px solid #f0f0f0; } .summary-row { display: flex; justify-content: space-between; margin-bottom: clamp(6px, 1vh, 12px); font-size: clamp(13px, 2vh, 15px); } .summary-row.total { font-size: clamp(16px, 2.5vh, 20px); font-weight: 700; color: #333; margin-top: clamp(6px, 1vh, 12px); padding-top: clamp(6px, 1vh, 12px); border-top: 2px solid #e0e0e0; } .cart-actions { padding: clamp(10px, 1.5vh, 20px); display: flex; flex-direction: column; gap: clamp(6px, 1vh, 12px); } .cart-actions-row { display: flex; gap: 10px; width: 100%; } .btn-save-order, .btn-print-bill, .btn-settle, .btn-discount, .btn-options, .btn-tabs { padding: clamp(10px, 1.8vh, 16px); border: none; border-radius: 10px; font-size: clamp(13px, 2vh, 16px); font-weight: 600; cursor: pointer; transition: all 0.3s; } .btn-save-order, .btn-print-bill, .btn-tabs, .btn-settle, .btn-options { padding: clamp(10px, 1.8vh, 16px) clamp(8px, 1vw, 12px); flex: 1; font-size: clamp(13px, 2vh, 16px); text-align: center; justify-content: center; } .btn-save-order { background: #51cf66; color: white; } .btn-save-order:hover { background: #40c057; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(81, 207, 102, 0.4); } .btn-print-bill { background: #228be6; color: white; } .btn-print-bill:hover { background: #1c7ed6; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34, 139, 230, 0.4); } .btn-tabs { background: #868e96; color: white; } .btn-tabs:hover { background: #6c757d; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(134, 142, 150, 0.4); } .btn-options { background: #ff922b !important; color: white !important; flex: 1; } .btn-options:hover { background: #fd7e14 !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 146, 43, 0.4); } .btn-discount { background: #ff922b; color: white; } .btn-discount:hover { background: #fd7e14; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 146, 43, 0.4); } .btn-settle { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; flex: 1; } .btn-settle:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4); } /* Disabled state for cart action buttons */ .btn-save-order.btn-disabled, .btn-print-bill.btn-disabled, .btn-settle.btn-disabled { background: #ccc !important; cursor: not-allowed !important; opacity: 0.7; transform: none !important; box-shadow: none !important; } .btn-save-order.btn-disabled:hover, .btn-print-bill.btn-disabled:hover, .btn-settle.btn-disabled:hover { transform: none !important; box-shadow: none !important; } /* Add Item Modal */ .add-item-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1000; backdrop-filter: blur(4px); } .add-item-modal.active { display: flex; justify-content: center; align-items: center; } .add-item-content { background: white; border-radius: 16px; width: 90%; max-width: 500px; 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; } } .add-item-header { padding: clamp(12px, 2.5vh, 24px); border-bottom: 2px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); border-radius: 16px 16px 0 0; } .add-item-header h2 { font-size: clamp(18px, 3vh, 22px); color: white; margin: 0; } .add-item-body { padding: clamp(12px, 2.5vh, 24px); } .item-preview { display: flex; align-items: center; gap: clamp(10px, 1.5vw, 16px); padding: clamp(10px, 1.5vh, 20px); background: #f8f9ff; border-radius: 12px; margin-bottom: clamp(12px, 2.5vh, 24px); border: 2px solid #e8ebfd; } .item-preview-icon { font-size: clamp(36px, 6vh, 48px); width: clamp(50px, 8vh, 70px); height: clamp(50px, 8vh, 70px); display: flex; align-items: center; justify-content: center; background: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1); } .item-preview-details h3 { font-size: clamp(16px, 2.5vh, 20px); color: #333; margin: 0 0 8px 0; } .item-preview-price { font-size: clamp(14px, 2vh, 18px); color: #3498db; font-weight: 600; margin: 0; } .item-preview-price span { font-size: clamp(18px, 3vh, 22px); font-weight: 700; } .quantity-input-section { margin-bottom: clamp(10px, 2vh, 20px); } .quantity-input-section label, .notes-input-section label { display: block; font-weight: 600; color: #333; margin-bottom: clamp(6px, 1vh, 12px); font-size: clamp(12px, 1.8vh, 14px); } .quantity-input-controls { display: flex; align-items: center; gap: 16px; justify-content: center; } .qty-btn-large { width: clamp(38px, 6vh, 50px); height: clamp(38px, 6vh, 50px); border: 2px solid #3498db; background: white; color: #3498db; font-size: clamp(18px, 3vh, 24px); border-radius: 10px; cursor: pointer; transition: all 0.2s; font-weight: bold; } .qty-btn-large:hover { background: #3498db; color: white; transform: scale(1.05); } .qty-btn-large:active { transform: scale(0.95); } .quantity-input-controls input { width: 100px; height: clamp(38px, 6vh, 50px); text-align: center; font-size: clamp(18px, 3vh, 24px); font-weight: 700; border: 2px solid #e0e0e0; border-radius: 10px; background: #f8f9ff; color: #333; } .notes-applicable-section { margin-bottom: 16px; } .notes-applicable-section label { display: block; font-weight: 600; color: #333; margin-bottom: 8px; font-size: 14px; } .notes-applicable-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 2px solid #e0e0e0; border-radius: 8px; background: #f8f9ff; max-height: 120px; overflow-y: auto; } .notes-applicable-item { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; border: 1px solid #ddd; border-radius: 20px; cursor: pointer; font-size: 13px; transition: all 0.2s; user-select: none; } .notes-applicable-item:hover { border-color: #3498db; background: #f0f2ff; } .notes-applicable-item input[type="checkbox"] { margin: 0; cursor: pointer; accent-color: #3498db; } .notes-applicable-item input[type="checkbox"]:checked + span { color: #3498db; font-weight: 600; } .notes-input-section { margin-bottom: clamp(10px, 2vh, 20px); } .notes-input-section textarea { width: 100%; padding: clamp(8px, 1.5vh, 12px); border: 2px solid #e0e0e0; border-radius: 8px; font-size: clamp(12px, 1.8vh, 14px); font-family: inherit; resize: vertical; transition: border-color 0.2s; } .notes-input-section textarea:focus { outline: none; border-color: #3498db; } .item-total-section { display: flex; justify-content: space-between; align-items: center; padding: clamp(10px, 1.5vh, 20px); background: linear-gradient(135deg, #f8f9ff 0%, #e8ebfd 100%); border-radius: 12px; margin-top: clamp(12px, 2.5vh, 24px); } .total-label { font-size: clamp(14px, 2vh, 18px); font-weight: 600; color: #333; } .total-amount { font-size: clamp(22px, 3.5vh, 28px); font-weight: 700; color: #3498db; } .add-item-footer { padding: clamp(10px, 1.5vh, 20px) clamp(12px, 2vw, 24px); border-top: 2px solid #f0f0f0; display: flex; gap: clamp(6px, 1vh, 12px); justify-content: flex-end; } /* POS List Container in Modal */ .pos-list-container { display: flex; flex-direction: column; gap: 12px; max-height: 400px; overflow-y: auto; } .pos-list-item { padding: clamp(10px, 2vh, 16px) clamp(12px, 1.5vw, 20px); background: #f8f9fa; border: 2px solid #e0e0e0; border-radius: 10px; cursor: pointer; transition: all 0.3s; font-size: clamp(13px, 2vh, 16px); font-weight: 500; color: #333; text-align: center; } .pos-list-item:hover { background: #f0f3ff; border-color: #3498db; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2); } .pos-list-item.active { background: #3498db; border-color: #3498db; color: white; } .btn-cancel, .btn-confirm { padding: clamp(8px, 1.5vh, 12px) clamp(20px, 2.5vw, 32px); border: none; border-radius: 8px; font-size: clamp(13px, 2vh, 16px); font-weight: 600; cursor: pointer; transition: all 0.2s; } .btn-cancel { background: #f0f0f0; color: #666; } .btn-cancel:hover { background: #e0e0e0; } .btn-confirm { background: linear-gradient(135deg, #51cf66 0%, #37b24d 100%); color: white; } .btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(81, 207, 102, 0.4); } .btn-confirm:disabled { background: #cfd4cf; color: #f0f0f0; cursor: not-allowed; transform: none; box-shadow: none; } /* Responsive Design - stacked mobile layout below 800px */ @media (max-width: 799px) { .main-container { flex-direction: column; height: auto; overflow-y: auto; } .header { flex-direction: column; gap: 4px; padding: 6px 10px; } .header-left { width: 100%; gap: 6px; } /* Hide order-type and right buttons from their desktop positions */ .header-left .order-type-icons { display: none; } .header-right { display: none; } /* Show the mobile buttons row */ .mobile-buttons-row { display: flex !important; } .table-info h1 { font-size: 16px; } .table-info p { font-size: 11px; } .btn-back { padding: 6px 10px; font-size: 12px; } .pos-selector-row { padding: 5px 8px; } .pos-tab-button { padding: 5px 10px; font-size: 11px; } .left-panel { flex: none; height: 50vh; overflow: hidden; padding: 6px; } .right-panel { width: 100%; flex: none; height: auto; } /* Cart items must scroll within a fixed area so buttons stay visible */ .cart-items { max-height: 25vh; overflow-y: auto; padding: 6px 10px; } .search-categories-container { flex-direction: column; padding: 6px; gap: 6px; } .search-section { min-width: unset; width: 100%; } .category-tabs { overflow: visible; width: 100%; } .category-row { overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; padding-bottom: 6px; } .search-section input { padding: 5px 8px; font-size: 12px; } .items-container { padding: 8px; } .items-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } .cart-header { padding: 8px 10px; } .cart-header h2 { font-size: 15px; } .cart-summary { padding: 8px 10px; } .cart-actions { padding: 6px 10px; gap: 6px; } .btn-save-order, .btn-print-bill, .btn-settle, .btn-discount, .btn-options, .btn-tabs { padding: 8px 6px; font-size: 13px; text-align: center; } .summary-row.total { font-size: 15px; } .cart-empty { padding: 25px 10px; } .empty-icon { font-size: 36px; margin-bottom: 6px; } } /* Categories grid responsive */ @media (max-width: 799px) { .categories-collapse { max-height: 35vh; } .categories-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; } .category-button { padding: 8px 10px; font-size: 12px; min-height: 40px; } } /* Small phones */ @media (max-width: 480px) { .header { padding: 4px 8px; gap: 4px; } .mobile-buttons-row .order-type-btn { padding: 4px 5px; } .mobile-buttons-row .order-type-label { display: none; } .mobile-buttons-row .order-type-icon { font-size: 18px; } .left-panel { height: 45vh; padding: 5px; } .cart-items { max-height: 22vh; padding: 6px 10px; } .items-container { padding: 6px; } .cart-header { padding: 8px 10px; } .cart-actions { padding: 6px 10px; gap: 6px; } .btn-save-order, .btn-print-bill, .btn-settle, .btn-discount, .btn-options, .btn-tabs { padding: 8px 6px; font-size: 14px; text-align: center; } .notepad-item { padding: 6px 8px !important; gap: 6px !important; } .notepad-qty { font-size: 13px; min-width: 24px; } .notepad-name { font-size: 13px; } .notepad-price { font-size: 13px; min-width: 50px; } } /* ============ Discount Modal Styles ============ */ /* Modal overlay */ #discountModal, #itemDiscountModal, #optionsModal, #orderListModal, #editOrderModal, #deliveryModal, #courierModal, #courierFormModal, #clientFormModal, #courierSelectionModal, #previousOrdersModal, #extraChargeModal, #splitBillModal, #headerDeliveryCourierModal, #postingDateModal, #returnsModal, #closeDayModal, #receiptSettingsModal, #depositsModal, #membershipsModal, #membershipAttendanceModal, #redeemableModal, #loyaltySettingsModal, #loyaltyMemberModal, #loyaltyRedeemModal, #onlineHistoryModal, #sellingTabsModal, #batchExpiryModal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1000; justify-content: center; align-items: center; backdrop-filter: blur(4px); } /* When modal is visible, use flex display */ #discountModal:not([style*="display: none"]), #itemDiscountModal:not([style*="display: none"]), #optionsModal:not([style*="display: none"]), #orderListModal:not([style*="display: none"]), #editOrderModal:not([style*="display: none"]), #deliveryModal:not([style*="display: none"]), #courierModal:not([style*="display: none"]), #courierFormModal:not([style*="display: none"]), #clientFormModal:not([style*="display: none"]), #courierSelectionModal:not([style*="display: none"]), #previousOrdersModal:not([style*="display: none"]), #extraChargeModal:not([style*="display: none"]), #splitBillModal:not([style*="display: none"]), #headerDeliveryCourierModal:not([style*="display: none"]), #postingDateModal:not([style*="display: none"]), #returnsModal:not([style*="display: none"]), #closeDayModal:not([style*="display: none"]), #receiptSettingsModal:not([style*="display: none"]), #depositsModal:not([style*="display: none"]), #membershipsModal:not([style*="display: none"]), #membershipAttendanceModal:not([style*="display: none"]), #redeemableModal:not([style*="display: none"]), #loyaltySettingsModal:not([style*="display: none"]), #loyaltyMemberModal:not([style*="display: none"]), #loyaltyRedeemModal:not([style*="display: none"]), #onlineHistoryModal:not([style*="display: none"]), #sellingTabsModal:not([style*="display: none"]), #batchExpiryModal:not([style*="display: none"]) { display: flex !important; } #discountModal .modal-content, #itemDiscountModal .modal-content, #optionsModal .modal-content, #orderListModal .modal-content, #editOrderModal .modal-content, #deliveryModal .modal-content, #courierModal .modal-content, #courierFormModal .modal-content, #clientFormModal .modal-content, #courierSelectionModal .modal-content, #previousOrdersModal .modal-content, #extraChargeModal .modal-content, #splitBillModal .modal-content, #headerDeliveryCourierModal .modal-content, #postingDateModal .modal-content, #returnsModal .modal-content, #closeDayModal .modal-content, #receiptSettingsModal .modal-content, #depositsModal .modal-content, #membershipsModal .modal-content, #membershipAttendanceModal .modal-content, #redeemableModal .modal-content, #loyaltySettingsModal .modal-content, #loyaltyMemberModal .modal-content, #loyaltyRedeemModal .modal-content, #onlineHistoryModal .modal-content, #sellingTabsModal .modal-content, #batchExpiryModal .modal-content { background: white; border-radius: 16px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2); animation: modalSlideIn 0.3s ease-out; max-height: 90vh; overflow-y: auto; position: relative; } #discountModal .modal-header, #itemDiscountModal .modal-header, #optionsModal .modal-header, #orderListModal .modal-header, #editOrderModal .modal-header, #deliveryModal .modal-header, #courierModal .modal-header, #courierFormModal .modal-header, #clientFormModal .modal-header, #courierSelectionModal .modal-header, #previousOrdersModal .modal-header, #extraChargeModal .modal-header, #splitBillModal .modal-header, #headerDeliveryCourierModal .modal-header, #postingDateModal .modal-header, #returnsModal .modal-header, #closeDayModal .modal-header, #receiptSettingsModal .modal-header, #depositsModal .modal-header, #membershipsModal .modal-header, #membershipAttendanceModal .modal-header, #redeemableModal .modal-header, #loyaltySettingsModal .modal-header, #loyaltyMemberModal .modal-header, #loyaltyRedeemModal .modal-header, #onlineHistoryModal .modal-header, #sellingTabsModal .modal-header, #batchExpiryModal .modal-header { padding: clamp(12px, 2.5vh, 24px); border-bottom: 2px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; } #discountModal .modal-header h2, #itemDiscountModal .modal-header h2, #optionsModal .modal-header h2, #orderListModal .modal-header h2, #editOrderModal .modal-header h2, #deliveryModal .modal-header h2, #courierModal .modal-header h2, #courierFormModal .modal-header h2, #clientFormModal .modal-header h2, #courierSelectionModal .modal-header h2, #previousOrdersModal .modal-header h2, #extraChargeModal .modal-header h2, #splitBillModal .modal-header h2, #headerDeliveryCourierModal .modal-header h2, #postingDateModal .modal-header h2, #returnsModal .modal-header h2, #closeDayModal .modal-header h2, #receiptSettingsModal .modal-header h2, #depositsModal .modal-header h2, #membershipsModal .modal-header h2, #membershipAttendanceModal .modal-header h2, #redeemableModal .modal-header h2, #loyaltySettingsModal .modal-header h2, #loyaltyMemberModal .modal-header h2, #loyaltyRedeemModal .modal-header h2, #onlineHistoryModal .modal-header h2, #sellingTabsModal .modal-header h2, #batchExpiryModal .modal-header h2 { margin: 0; font-size: clamp(18px, 3vh, 24px); color: #333; } .btn-close-modal { background: none; border: none; font-size: clamp(24px, 4vh, 32px); color: #999; cursor: pointer; padding: 0; width: clamp(28px, 4.5vh, 36px); height: clamp(28px, 4.5vh, 36px); display: flex; align-items: center; justify-content: center; border-radius: 8px; transition: all 0.2s; } .btn-close-modal:hover { background: #f0f0f0; color: #333; } /* Membership Attendance Modal */ .attendance-modal-content { width: 420px; max-width: 95%; } .attendance-client-card { display: flex; align-items: center; gap: 16px; background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 12px; padding: 16px; margin-bottom: 20px; } .attendance-avatar { width: 48px; height: 48px; min-width: 48px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 600; } .attendance-client-info { display: flex; flex-direction: column; gap: 4px; overflow: hidden; } .attendance-client-name { font-size: 16px; font-weight: 600; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .attendance-package-name { font-size: 13px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .attendance-form-group { display: flex; flex-direction: column; gap: 6px; } .attendance-form-group label { font-size: 13px; font-weight: 600; color: #374151; text-transform: uppercase; letter-spacing: 0.5px; } .attendance-date-input { width: 100%; padding: 10px 14px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 15px; color: #1f2937; background: #fff; transition: border-color 0.2s; box-sizing: border-box; } .attendance-date-input:focus { outline: none; border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); } /* White close button for modals with colored gradient headers */ #addItemModal .btn-close-modal, #kotProgressModal .btn-close-modal, #kotDetailsModal .btn-close-modal, #deleteItemsModal .btn-close-modal, #deleteReasonModal .btn-close-modal, #onlineHistoryModal .btn-close-modal { color: white; background: rgba(255, 255, 255, 0.2); border-radius: 50%; } #addItemModal .btn-close-modal:hover, #kotProgressModal .btn-close-modal:hover, #kotDetailsModal .btn-close-modal:hover, #deleteItemsModal .btn-close-modal:hover, #deleteReasonModal .btn-close-modal:hover, #onlineHistoryModal .btn-close-modal:hover { background: rgba(255, 255, 255, 0.3); color: white; } #onlineHistoryModal { z-index: 10001; } #onlineHistoryModal .modal-header h2 { color: #fff; } #discountModal .modal-body, #itemDiscountModal .modal-body, #optionsModal .modal-body, #orderListModal .modal-body, #editOrderModal .modal-body, #deliveryModal .modal-body, #courierModal .modal-body, #courierFormModal .modal-body, #clientFormModal .modal-body, #courierSelectionModal .modal-body, #previousOrdersModal .modal-body, #extraChargeModal .modal-body, #splitBillModal .modal-body, #headerDeliveryCourierModal .modal-body, #postingDateModal .modal-body, #returnsModal .modal-body, #closeDayModal .modal-body, #receiptSettingsModal .modal-body, #loyaltySettingsModal .modal-body, #loyaltyMemberModal .modal-body, #loyaltyRedeemModal .modal-body, #onlineHistoryModal .modal-body, #sellingTabsModal .modal-body, #batchExpiryModal .modal-body { padding: clamp(12px, 2.5vh, 24px); } #discountModal .modal-footer, #itemDiscountModal .modal-footer, #optionsModal .modal-footer, #orderListModal .modal-footer, #editOrderModal .modal-footer, #deliveryModal .modal-footer, #courierModal .modal-footer, #courierFormModal .modal-footer, #clientFormModal .modal-footer, #courierSelectionModal .modal-footer, #previousOrdersModal .modal-footer, #extraChargeModal .modal-footer, #splitBillModal .modal-footer, #headerDeliveryCourierModal .modal-footer, #postingDateModal .modal-footer, #returnsModal .modal-footer, #closeDayModal .modal-footer, #receiptSettingsModal .modal-footer, #loyaltySettingsModal .modal-footer, #loyaltyMemberModal .modal-footer, #loyaltyRedeemModal .modal-footer, #onlineHistoryModal .modal-footer, #sellingTabsModal .modal-footer, #batchExpiryModal .modal-footer { padding: clamp(10px, 1.5vh, 20px) clamp(12px, 2vw, 24px); border-top: 2px solid #f0f0f0; display: flex; justify-content: flex-end; gap: clamp(6px, 1vh, 12px); } .form-group { margin-bottom: clamp(10px, 2vh, 20px); } .form-group label { display: block; margin-bottom: clamp(4px, 0.8vh, 8px); font-weight: 600; color: #333; font-size: clamp(12px, 1.8vh, 14px); } .form-group select, .form-group input[type="number"], .form-group textarea { width: 100%; padding: clamp(8px, 1.5vh, 12px) clamp(10px, 1.2vw, 16px); border: 2px solid #e0e0e0; border-radius: 8px; font-size: clamp(13px, 2vh, 15px); transition: border-color 0.3s; } .form-group select:focus, .form-group input[type="number"]:focus, .form-group textarea:focus { outline: none; border-color: #3498db; } .form-group select { cursor: pointer; background: white; } .form-group textarea { resize: vertical; font-family: inherit; } .radio-group { display: flex; gap: 20px; margin-top: 8px; } .radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; margin-bottom: 0; } .radio-group input[type="radio"] { width: 18px; height: 18px; cursor: pointer; } .radio-group input[type="radio"]:disabled { cursor: not-allowed; opacity: 0.5; } .btn-item-discount { width: 100%; padding: clamp(8px, 1.5vh, 12px) clamp(10px, 1.2vw, 16px); background: #3498db; color: white; border: none; border-radius: 8px; font-size: clamp(13px, 2vh, 15px); font-weight: 600; cursor: pointer; transition: all 0.3s; } .btn-item-discount:hover { background: #5568d3; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3); } /* Item Discount Table */ .item-discount-table { width: 100%; border-collapse: collapse; margin-top: 10px; } .item-discount-table thead { background: #f8f9fa; } .item-discount-table th { padding: clamp(8px, 1.5vh, 12px); text-align: left; font-weight: 600; color: #333; border-bottom: 2px solid #e0e0e0; } .item-discount-table td { padding: clamp(6px, 1.2vh, 10px) clamp(8px, 1vw, 12px); border-bottom: 1px solid #e0e0e0; } .item-discount-table tbody tr:hover { background: #f8f9fa; } .item-discount-check { width: 20px; height: 20px; cursor: pointer; } .item-discount-value { padding: 6px 10px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 14px; } .item-discount-value:focus { outline: none; border-color: #3498db; } /* Responsive adjustments for discount modal */ @media (max-width: 768px) { #discountModal .modal-content, #itemDiscountModal .modal-content, #optionsModal .modal-content { width: 95% !important; max-width: 95% !important; } .radio-group { flex-direction: column; gap: 10px; } .item-discount-table { font-size: 13px; } .item-discount-table th, .item-discount-table td { padding: 8px 6px; } } /* Options Modal */ #optionsModal .modal-content { width: 600px !important; max-width: 95% !important; } .options-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 10px 0; } .option-btn { padding: clamp(12px, 2.5vh, 20px) clamp(10px, 1.2vw, 16px); border: 2px solid #e9ecef; border-radius: 10px; background: white; font-size: clamp(13px, 2vh, 15px); font-weight: 600; cursor: pointer; transition: all 0.3s; text-align: left; color: #495057; display: flex; align-items: center; gap: 8px; } .option-btn:hover { background: #f8f9fa; border-color: #3498db; color: #3498db; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2); } .option-btn:active { transform: translateY(0); } @media (max-width: 600px) { .options-grid { grid-template-columns: 1fr; } /* Keep buttons in a single row - do NOT stack vertically */ .cart-actions-row { flex-direction: row; gap: 6px; } .btn-save-order, .btn-print-bill, .btn-tabs { font-size: 14px; padding: 10px 6px; text-align: center; } .btn-settle, .btn-options { font-size: 14px; padding: 10px 6px; text-align: center; } } /* Order List Modal Styles */ .order-list-search-bar { display: flex; gap: 10px; margin-bottom: 20px; } .order-list-search-input { flex: 1; padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 15px; transition: border-color 0.3s; } .order-list-search-input:focus { outline: none; border-color: #3498db; } .order-list-refresh-btn { padding: 12px 20px; background: #3498db; color: white; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s; } .order-list-refresh-btn:hover { background: #5568d3; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3); } .order-list-table-container { max-height: 450px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px; } .order-list-table { width: 100%; border-collapse: collapse; font-size: 14px; } .order-list-table thead { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; position: sticky; top: 0; z-index: 10; } .order-list-table th, .order-list-table td { padding: 12px; text-align: left; border-bottom: 1px solid #e0e0e0; } .order-list-table td:last-child { white-space: nowrap; min-width: 220px; } .order-list-table th { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; } .order-list-table tbody tr { transition: background-color 0.2s; } .order-list-table tbody tr:hover { background-color: #f8f9fa; } .order-list-table tbody tr.order-old { background-color: #fff3cd; } .order-list-table tbody tr.order-very-old { background-color: #ffdddd; } .order-list-table tbody tr.order-online-new { background-color: #ffe5d0; } /* Order List View Toggle Buttons */ .order-list-toggle-btn { padding: 10px 18px; background: #f0f0f0; color: #555; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; } .order-list-toggle-btn:hover { background: #e8e8e8; } .order-list-toggle-btn.active { background: #3498db; color: white; border-color: #3498db; } .order-list-toggle-btn.active.online { background: #e67e22; border-color: #e67e22; } .order-action-btn { padding: 6px 10px; margin: 0 2px; border: none; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; } .order-action-btn.process { background: #51cf66; color: white; } .order-action-btn.process:hover { background: #40c057; transform: translateY(-1px); } .order-action-btn.view { background: #228be6; color: white; } .order-action-btn.view:hover { background: #1c7ed6; transform: translateY(-1px); } .order-action-btn.void { background: #ff6b6b; color: white; } .order-action-btn.void:hover { background: #ff5252; transform: translateY(-1px); } @media (max-width: 900px) { .order-list-table { font-size: 12px; } .order-list-table th, .order-list-table td { padding: 8px 6px; } .order-action-btn { padding: 4px 8px; font-size: 11px; } } /* Split Bill Table Grid Styles */ .split-table-row { cursor: pointer; transition: all 0.2s ease; } .split-table-row:hover { background-color: #e3f2fd !important; } .split-table-row.selected { background-color: #bbdefb !important; border-left: 3px solid #1976d2; } .split-table-row.selected td:first-child { padding-left: 9px; } .table-status-badge { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; } .table-status-badge.status-occupied { background-color: #fff3e0; color: #e65100; } .table-status-badge.status-available { background-color: #e8f5e9; color: #2e7d32; } /* Custom Table Dropdown for Split Bill */ .custom-table-dropdown { position: relative; width: 100%; } .custom-table-dropdown-selected { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: white; border: 1px solid #ddd; border-radius: 8px; cursor: pointer; font-size: 14px; transition: border-color 0.2s; } .custom-table-dropdown-selected:hover { border-color: #1a73e8; } .custom-table-dropdown-selected .dropdown-arrow { font-size: 10px; color: #666; } .custom-table-dropdown-options { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; max-height: 250px; overflow-y: auto; margin-top: 4px; } .table-dropdown-grid { width: 100%; border-collapse: collapse; } .table-dropdown-grid thead th { position: sticky; top: 0; background: #f8f9fa; padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 600; color: #666; border-bottom: 1px solid #eee; } .table-dropdown-grid thead th:last-child { text-align: right; } .table-dropdown-row { cursor: pointer; transition: background-color 0.15s; } .table-dropdown-row:hover { background-color: #e3f2fd; } .table-dropdown-row td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid #f0f0f0; } .table-dropdown-row:last-child td { border-bottom: none; } .table-dropdown-search { padding: 10px; border-bottom: 1px solid #eee; position: sticky; top: 0; background: white; z-index: 1; } .table-dropdown-search input { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; transition: border-color 0.2s; } .table-dropdown-search input:focus { border-color: #1a73e8; } /* Posting Date Modal Styles */ .posting-date-options { display: flex; flex-direction: column; gap: 15px; } .posting-date-option { display: flex; align-items: center; gap: 12px; padding: 15px; border: 2px solid #e0e0e0; border-radius: 10px; cursor: pointer; transition: all 0.2s ease; } .posting-date-option:hover { border-color: #3498db; background: #f8f9ff; } .posting-date-option input[type="radio"] { width: 20px; height: 20px; accent-color: #3498db; } .posting-date-option span { font-size: 15px; color: #333; } .date-select-row { margin-top: 10px; margin-left: 32px; } .date-select-row input[type="date"] { padding: 12px 16px; border: 2px solid #e0e0e0; border-radius: 8px; font-size: 15px; width: 100%; box-sizing: border-box; } .date-select-row input[type="date"]:focus { outline: none; border-color: #3498db; } .selected-date-display { text-align: center; font-size: 15px; } .selected-date-display strong { color: #3498db; } /* KOT Progress Modal Styles */ #kotProgressModal, #kotDetailsModal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; justify-content: center; align-items: center; } #kotProgressModal.visible, #kotDetailsModal.visible { display: flex !important; } #kotProgressModal .modal-content, #kotDetailsModal .modal-content { background: white; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; } #kotProgressModal .modal-header, #kotDetailsModal .modal-header { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; padding: clamp(10px, 2vh, 18px) clamp(12px, 2vw, 24px); display: flex; justify-content: space-between; align-items: center; } #kotProgressModal .modal-header h2, #kotDetailsModal .modal-header h2 { font-size: clamp(15px, 2.2vh, 18px); font-weight: 600; } #kotProgressModal .modal-body, #kotDetailsModal .modal-body { padding: clamp(10px, 1.5vh, 20px) clamp(12px, 2vw, 24px); overflow-y: auto; flex: 1; } #kotProgressModal .modal-footer, #kotDetailsModal .modal-footer { padding: clamp(8px, 1.2vh, 15px) clamp(12px, 2vw, 24px); border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: clamp(6px, 1vh, 12px); } /* KOT Progress Filters */ .kot-progress-filters { display: flex; gap: 15px; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; } .kot-filter-group { display: flex; flex-direction: column; gap: 5px; } .kot-filter-group label { font-size: 13px; font-weight: 500; color: #555; } .kot-filter-group input, .kot-filter-group select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; min-width: 150px; } .kot-filter-group input:focus, .kot-filter-group select:focus { outline: none; border-color: #3498db; } .kot-refresh-btn { padding: 8px 16px; background: #3498db; color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; } .kot-refresh-btn:hover { background: #2980b9; } /* KOT Progress Table */ .kot-progress-table-container { max-height: 400px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px; } .kot-progress-table { width: 100%; border-collapse: collapse; font-size: 14px; } .kot-progress-table thead { background: #f8f9fa; position: sticky; top: 0; } .kot-progress-table th { padding: 12px 10px; text-align: left; font-weight: 600; color: #333; border-bottom: 2px solid #dee2e6; } .kot-progress-table th.status-header { text-align: center; font-size: 12px; font-weight: 500; color: #666; } .kot-progress-table td { padding: 10px; border-bottom: 1px solid #eee; } .kot-progress-table tbody tr { cursor: pointer; transition: background 0.2s; } .kot-progress-table tbody tr:hover { background: #f0f4ff; } .kot-progress-table tbody tr.selected { background: #e3e8ff; } /* Status Radio Buttons */ .kot-status-radio { text-align: center; } .kot-status-radio input[type="radio"] { width: 18px; height: 18px; cursor: not-allowed; } .kot-status-radio input[type="radio"]:checked { accent-color: #3498db; } /* KOT Details Table */ .kot-details-table-container { max-height: 350px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px; } .kot-details-table { width: 100%; border-collapse: collapse; font-size: 14px; } .kot-details-table thead { background: #f8f9fa; position: sticky; top: 0; } .kot-details-table th { padding: 12px 10px; text-align: left; font-weight: 600; color: #333; border-bottom: 2px solid #dee2e6; } .kot-details-table td { padding: 10px; border-bottom: 1px solid #eee; } .kot-details-table tfoot { background: #f8f9fa; } .kot-details-table tfoot td { border-bottom: none; border-top: 2px solid #dee2e6; } /* Empty state for KOT tables */ .kot-progress-table .empty-state, .kot-details-table .empty-state { text-align: center; padding: 30px; color: #888; } /* Delete Items Modal Styles */ #deleteItemsModal, #deleteReasonModal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1000; justify-content: center; align-items: center; } #deleteItemsModal.visible, #deleteReasonModal.visible { display: flex !important; } #deleteItemsModal .modal-content, #deleteReasonModal .modal-content { background: white; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; } #deleteItemsModal .modal-header, #deleteReasonModal .modal-header { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: white; padding: clamp(10px, 2vh, 18px) clamp(12px, 2vw, 24px); display: flex; justify-content: space-between; align-items: center; } #deleteItemsModal .modal-header h2, #deleteReasonModal .modal-header h2 { font-size: clamp(15px, 2.2vh, 18px); font-weight: 600; } #deleteItemsModal .modal-body, #deleteReasonModal .modal-body { padding: clamp(10px, 1.5vh, 20px) clamp(12px, 2vw, 24px); overflow-y: auto; flex: 1; } #deleteItemsModal .modal-footer, #deleteReasonModal .modal-footer { padding: clamp(8px, 1.2vh, 15px) clamp(12px, 2vw, 24px); border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: clamp(6px, 1vh, 12px); } /* Delete Items Table */ .delete-items-table-container { max-height: 400px; overflow-y: auto; border: 1px solid #e0e0e0; border-radius: 8px; } .delete-items-table { width: 100%; border-collapse: collapse; font-size: 14px; } .delete-items-table thead { background: #f8f9fa; position: sticky; top: 0; } .delete-items-table th { padding: 12px 10px; text-align: left; font-weight: 600; color: #333; border-bottom: 2px solid #dee2e6; } .delete-items-table td { padding: 10px; border-bottom: 1px solid #eee; } .delete-items-table tbody tr { transition: background 0.2s; } .delete-items-table tbody tr:hover { background: #fff5f5; } .delete-items-table tbody tr.selected { background: #ffe6e6; } .delete-items-table input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; } /* Danger button style */ .btn-settle-danger { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important; color: white !important; } .btn-settle-danger:hover { background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important; } /* Delete Reason Form */ .delete-reason-form { display: flex; flex-direction: column; gap: 10px; } .delete-reason-form label { font-weight: 500; color: #333; } .delete-reason-form textarea { padding: 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; resize: vertical; min-height: 100px; } .delete-reason-form textarea:focus { outline: none; border-color: #e74c3c; } /* ========== Returns Modal Styles ========== */ .returns-form { display: flex; flex-direction: column; gap: 15px; } .returns-form .form-group { display: flex; flex-direction: column; gap: 5px; } .returns-form label { font-weight: 500; color: #333; font-size: 14px; } .returns-form .form-control { padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; transition: border-color 0.3s; } .returns-form .form-control:focus { outline: none; border-color: #3498db; } .returns-form .form-control:read-only { background-color: #f5f5f5; cursor: not-allowed; } .returns-form select.form-control { cursor: pointer; } .returns-warning { margin-top: 10px; padding: 10px 15px; background-color: #fff3cd; border: 1px solid #ffc107; border-radius: 6px; color: #856404; font-size: 14px; } .btn-settle-primary { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; } .btn-settle-primary:hover { background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%); } /* ========== Close Day Modal Styles ========== */ .close-day-info { text-align: center; padding: clamp(10px, 2vh, 20px) 0; } .close-day-icon { margin-bottom: 20px; } .close-day-message { font-size: clamp(14px, 2vh, 18px); color: #333; margin-bottom: clamp(8px, 1.5vh, 15px); } .close-day-message strong { color: #3498db; } .close-day-warning { font-size: 14px; color: #666; background-color: #fff3cd; border: 1px solid #ffc107; border-radius: 6px; padding: 12px; margin-top: 15px; } .close-day-progress { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 0; } .close-day-progress p { margin-top: 15px; color: #666; font-size: 14px; } .progress-spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #3498db; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .close-day-result { text-align: center; padding: 20px 0; } .close-day-result p { margin-top: 15px; font-size: 16px; } .close-day-success { color: #27ae60; } .close-day-success p { color: #27ae60; } .close-day-success-icon { margin-bottom: 10px; } .close-day-error { color: #e74c3c; } .close-day-error p { color: #e74c3c; } .close-day-error-icon { margin-bottom: 10px; } .btn-settle-primary:disabled { background: #ccc; cursor: not-allowed; } /* Notification toast */ .pos-notification { position: fixed; top: clamp(50px, 10vh, 80px); left: 50%; transform: translateX(-50%); padding: clamp(8px, 1.5vh, 12px) clamp(12px, 1.5vw, 20px); border-radius: 8px; display: flex; align-items: center; gap: 10px; z-index: 10000; box-shadow: 0 4px 15px rgba(0,0,0,0.2); animation: slideDown 0.3s ease; max-width: 90%; } @keyframes slideDown { from { transform: translateX(-50%) translateY(-20px); opacity: 0; } to { transform: translateX(-50%) translateY(0); opacity: 1; } } .pos-notification-info { background: #d1ecf1; border: 1px solid #bee5eb; color: #0c5460; } .pos-notification-success { background: #d4edda; border: 1px solid #c3e6cb; color: #155724; } .pos-notification-warning { background: #fff3cd; border: 1px solid #ffc107; color: #856404; } .pos-notification-error { background: #f8d7da; border: 1px solid #f5c6cb; color: #721c24; } .notification-icon { font-size: 18px; flex-shrink: 0; } .notification-message { flex: 1; font-size: 14px; font-weight: 500; } .notification-close { background: none; border: none; font-size: 20px; cursor: pointer; opacity: 0.6; padding: 0 5px; line-height: 1; } .notification-close:hover { opacity: 1; } /* Toast notification - bottom right */ .pos-toast { position: fixed; bottom: 30px; right: 30px; background: #155724; color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 500; z-index: 10000; box-shadow: 0 4px 12px rgba(0,0,0,0.25); animation: toastIn 0.3s ease; transition: opacity 0.4s ease, transform 0.4s ease; } .pos-toast-hide { opacity: 0; transform: translateY(10px); } @keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Deposits Modal */ #depositsModal .modal-content { width: 800px !important; max-width: 95% !important; } /* Memberships Modal */ #membershipsModal .modal-content { width: 900px !important; max-width: 95% !important; } .modal-wide .modal-content { width: 800px !important; max-width: 95% !important; } /* Data Table Styles */ .data-table { width: 100%; border-collapse: collapse; font-size: 14px; } .data-table th, .data-table td { padding: clamp(8px, 1.5vh, 12px) clamp(10px, 1.2vw, 15px); text-align: left; border-bottom: 1px solid #e0e0e0; } .data-table th { background: #f8f9fa; font-weight: 600; color: #333; text-transform: uppercase; font-size: 12px; letter-spacing: 0.5px; } .data-table tbody tr:hover { background: #f5f5f5; } .data-table tbody tr:last-child td { border-bottom: none; } .btn-select-deposit { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); color: white; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; transition: all 0.2s; } .btn-select-deposit:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4); } .btn-select-deposit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } .deposit-amount { font-weight: bold; color: #2e7d32; } /* Accompaniment mode styles */ .accomp-banner { display: flex; align-items: center; justify-content: space-between; background: #fff3cd; border: 1px solid #ffc107; border-radius: 6px; padding: 8px 16px; margin-bottom: 8px; font-size: 13px; color: #856404; } .accomp-banner-text { flex: 1; } .accomp-done-btn { background: #3498db; color: white; border: none; border-radius: 4px; padding: 6px 16px; cursor: pointer; font-weight: 600; font-size: 13px; margin-left: 12px; } .accomp-done-btn:hover { background: #2980b9; } /* Accompaniment category tab styling */ .category-tab-accompaniment { border-color: #ffc107 !important; background: #fff8e1 !important; } .category-tab-accompaniment.active { background: #ffc107 !important; color: #333 !important; } /* Accompaniment item in cart - indented with left border */ .notepad-item.accomp-item { padding-left: 24px; font-style: italic; color: #666; border-left: 3px solid #ffc107; } .notepad-item.accomp-item .notepad-price { color: #999; } /* ============================================================ SUPERMARKET / RETAIL MODE STYLES (system_type = 2) ============================================================ */ /* Supermarket header - cleaner, retail-oriented */ .supermarket-mode .header { background: linear-gradient(135deg, #1a237e 0%, #283593 100%); } .supermarket-mode .supermarket-header-info h1 { font-size: clamp(14px, 2vw, 18px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 300px; } /* New Sale button */ .supermarket-new-sale-btn { background: #4CAF50; color: #fff; border: none; padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: clamp(12px, 1.5vw, 14px); cursor: pointer; transition: background 0.2s; } .supermarket-new-sale-btn:hover { background: #388E3C; } /* Supermarket search bar - larger and more prominent for barcode scanning */ .supermarket-mode .supermarket-search { padding: 8px; } .supermarket-search-row { display: flex; gap: 8px; align-items: stretch; } .supermarket-search-row input[type="text"] { flex: 1; } .qty-input-wrapper { display: flex; flex-direction: column; align-items: center; min-width: 64px; } .qty-input-wrapper label { font-size: 10px; font-weight: 700; color: #1a237e; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; } .qty-input-wrapper input[type="number"] { width: 64px; text-align: center; font-size: clamp(18px, 2vw, 22px); font-weight: 700; padding: 10px 4px; border: 2px solid #1a237e; border-radius: 10px; background: #e8eaf6; color: #1a237e; -moz-appearance: textfield; } .qty-input-wrapper input[type="number"]::-webkit-inner-spin-button, .qty-input-wrapper input[type="number"]::-webkit-outer-spin-button { opacity: 1; height: 100%; } .qty-input-wrapper input[type="number"]:focus { border-color: #4CAF50; background: #e8f5e9; outline: none; box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); } .supermarket-mode .supermarket-search input[type="text"] { font-size: clamp(16px, 2vw, 20px); padding: 12px 16px; border: 2px solid #1a237e; border-radius: 10px; background: #fff; font-weight: 500; letter-spacing: 0.5px; } .supermarket-mode .supermarket-search input[type="text"]:focus { border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); outline: none; } /* Supermarket: scan/search inline with the POS list row, smaller height */ .pos-selector-row--supermarket { display: flex; align-items: center; gap: 12px; } .pos-selector-row--supermarket .pos-buttons-scroll { flex: 1 1 auto; min-width: 0; padding-bottom: 0; } .pos-row-search { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; width: clamp(260px, 34vw, 440px); } .pos-row-search input[type="text"] { flex: 1 1 auto; min-width: 0; height: 34px; padding: 4px 12px; border: 2px solid #1a237e; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 500; box-sizing: border-box; } /* Compact, inline QTY box that lines up with the smaller search field */ .qty-input-wrapper--inline { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 6px; min-width: 0; } .qty-input-wrapper--inline label { margin-bottom: 0; } .qty-input-wrapper--inline input[type="number"] { width: 52px; height: 34px; font-size: 16px; padding: 4px; border-radius: 8px; box-sizing: border-box; } .pos-row-search input[type="text"]:focus { border-color: #4CAF50; box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2); outline: none; } /* Supermarket PAY button - larger and more prominent */ .supermarket-mode .supermarket-pay-btn { background: #4CAF50 !important; font-size: clamp(14px, 2vw, 18px) !important; padding: 12px 20px !important; flex: 2 !important; } .supermarket-mode .supermarket-pay-btn:hover { background: #388E3C !important; } /* NEW SALE button in cart actions */ .supermarket-mode .btn-new-sale { background: #1a237e; color: #fff; border: none; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: clamp(12px, 1.5vw, 14px); cursor: pointer; flex: 1; transition: background 0.2s; } .supermarket-mode .btn-new-sale:hover { background: #283593; } /* Barcode label in item list */ .item-barcode-label { display: inline-block; font-size: 10px; color: #888; background: #f0f0f0; padding: 1px 6px; border-radius: 3px; margin-left: 6px; font-family: monospace; } /* Supermarket cart summary - more prominent total */ .supermarket-mode .cart-summary .summary-row.total { font-size: clamp(18px, 2.5vw, 24px); padding: 12px 16px; background: #e8f5e9; border-radius: 8px; margin-top: 4px; } /* Supermarket right panel - emphasize the payment area */ .supermarket-mode .right-panel { border-left: 3px solid #1a237e; } /* Supermarket cart actions - bigger buttons */ .supermarket-mode .cart-actions { gap: 6px; padding: 8px; } .supermarket-mode .cart-actions-row { gap: 6px; } /* Supermarket inline quantity controls */ .supermarket-qty-controls { display: flex; align-items: center; gap: 0; padding: 6px 8px; } .sq-btn { width: 36px; height: 36px; border: 2px solid #1a237e; background: #e8eaf6; color: #1a237e; font-size: 20px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; line-height: 1; } .sq-minus { border-radius: 8px 0 0 8px; border-right: none; } .sq-plus { border-radius: 0 8px 8px 0; border-left: none; } .sq-btn:hover { background: #c5cae9; } .sq-btn:active { background: #1a237e; color: #fff; } .sq-display { width: 56px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #1a237e; background: #fff; border-top: 2px solid #1a237e; border-bottom: 2px solid #1a237e; } input.sq-input { text-align: center; border-left: none; border-right: none; border-radius: 0; outline: none; -moz-appearance: textfield; padding: 0; } input.sq-input::-webkit-inner-spin-button, input.sq-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; } input.sq-input:focus { background: #e8f5e9; box-shadow: none; } .supermarket-qty-controls .close-inline-controls { margin-left: auto; }