    /* Action Buttons — horizontal scroll */
    .order-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .order-actions::-webkit-scrollbar {
        display: none;
    }

    .order-actions button {
        flex: 0 0 auto !important;
        min-width: 68px !important;
        white-space: nowrap !important;
    }

    /* Modal Styles */
    .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }
    
    .modal-content {
        background: white;
        border-radius: 1rem;
        width: 100%;
        max-width: 400px;
        max-height: 90vh;
        overflow: hidden;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
    
    .modal-content.modal-lg {
        max-width: 600px;
    }
    
    .modal-content.modal-xl {
        max-width: 900px;
    }

    /* ========== SHIFT TRANSACTIONS MODAL ========== */
    .txn-modal {
        max-width: 920px;
        border-radius: 1rem;
        overflow: hidden;
    }

    .txn-summary-bar {
        display: flex;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        overflow-x: auto;
    }

    .txn-summary-card {
        flex: 1;
        min-width: 110px;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.55rem 0.75rem;
        background: white;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
    }

    .txn-summary-value {
        font-size: 1rem;
        font-weight: 700;
        color: #0f172a;
        line-height: 1.2;
    }

    .txn-summary-label {
        font-size: 0.65rem;
        color: #94a3b8;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        line-height: 1;
    }

    .txn-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.82rem;
    }

    .txn-table thead tr {
        background: #f1f5f9;
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .txn-table th {
        padding: 0.55rem 0.75rem;
        font-weight: 600;
        color: #64748b;
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 2px solid #e2e8f0;
        text-align: left;
    }

    .txn-row td {
        padding: 0.55rem 0.75rem;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: middle;
    }

    .txn-row:hover {
        background: #f8fafc;
    }

    .txn-row-alt {
        background: #fafbfc;
    }

    .txn-row-alt:hover {
        background: #f1f5f9;
    }

    .txn-cancelled td {
        opacity: 0.45;
        text-decoration: line-through;
    }

    .txn-badge {
        display: inline-block;
        padding: 0.15rem 0.5rem;
        border-radius: 9999px;
        font-size: 0.68rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .txn-action-btn {
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e2e8f0;
        background: white;
        border-radius: 0.375rem;
        cursor: pointer;
        color: #475569;
        transition: all 0.15s;
    }

    .txn-action-btn:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
        color: #1e293b;
    }

    .txn-qr-btn {
        color: #047857;
        border-color: #a7f3d0;
        background: #ecfdf5;
    }

    .txn-qr-btn:hover {
        background: #d1fae5;
        border-color: #6ee7b7;
    }

    .txn-qr-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    .txn-qr-ok {
        display: inline-flex;
        align-items: center;
        gap: 0.15rem;
        font-size: 0.65rem;
        font-weight: 700;
        color: #15803d;
        background: #dcfce7;
        padding: 0.15rem 0.4rem;
        border-radius: 0.25rem;
    }

    .txn-spinner {
        width: 20px;
        height: 20px;
        border: 2.5px solid #e2e8f0;
        border-top-color: #6366f1;
        border-radius: 50%;
        animation: txn-spin 0.7s linear infinite;
    }

    .txn-spinner-sm {
        width: 12px;
        height: 12px;
        border: 2px solid #a7f3d0;
        border-top-color: #047857;
        border-radius: 50%;
        animation: txn-spin 0.7s linear infinite;
    }

    @keyframes txn-spin {
        to { transform: rotate(360deg); }
    }
    
    /* ========== PRICE MODAL - Compact No-Scroll Design ========== */
    .price-modal {
        background: #fff;
        border-radius: 16px;
        width: 320px;
        max-width: 92vw;
        max-height: 96vh;
        box-shadow: 0 20px 60px rgba(0,0,0,0.25);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: price-modal-in 0.15s ease-out;
    }

    @keyframes price-modal-in {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
    }

    .price-modal-top {
        padding: 0.75rem 1rem 0.5rem;
        text-align: center;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
        border-bottom: 1px solid #e2e8f0;
    }

    .price-modal-item {
        font-weight: 700;
        font-size: 0.88rem;
        color: #1e293b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .price-modal-display {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        margin: 0.35rem 0 0.2rem;
    }

    .price-modal-currency {
        font-size: 1rem;
        color: #64748b;
        font-weight: 500;
    }

    .price-modal-currency-svg {
        display: flex;
        align-items: center;
    }

    .price-modal-currency-svg svg {
        width: 18px;
        height: 18px;
        fill: currentColor;
    }

    .price-modal-value {
        font-size: 1.6rem;
        font-weight: 800;
        color: #0f172a;
        letter-spacing: -0.5px;
        padding: 0.15rem 0.75rem;
        background: #fff;
        border: 2px solid #cbd5e1;
        border-radius: 8px;
        min-width: 140px;
        text-align: center;
    }

    .price-modal-default {
        font-size: 0.7rem;
        color: #94a3b8;
    }

    .price-modal-keypad {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        padding: 0.5rem 0.75rem;
    }

    .pk-btn {
        padding: 0;
        height: 48px;
        font-size: 1.2rem;
        font-weight: 600;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        background: #fff;
        color: #1e293b;
        cursor: pointer;
        transition: all 0.1s;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pk-btn:hover { background: #f1f5f9; }
    .pk-btn:active { background: #e2e8f0; transform: scale(0.96); }

    .pk-back {
        background: #fef2f2;
        color: #dc2626;
        border-color: #fecaca;
    }
    .pk-back:hover { background: #fee2e2; }

    .pk-dot { font-size: 1.5rem; font-weight: 800; }

    .price-modal-actions {
        display: flex;
        gap: 6px;
        padding: 0 0.75rem 0.5rem;
    }

    .pk-action {
        flex: 1;
        padding: 0.4rem;
        font-size: 0.75rem;
        font-weight: 600;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: #f8fafc;
        color: #475569;
        cursor: pointer;
        transition: all 0.1s;
    }
    .pk-action:hover { background: #e2e8f0; }

    .pk-clear {
        background: #fef3c7;
        color: #92400e;
        border-color: #fcd34d;
    }
    .pk-clear:hover { background: #fde68a; }

    .price-modal-footer {
        display: flex;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem 0.625rem;
        border-top: 1px solid #e2e8f0;
        background: #f9fafb;
    }

    .pk-cancel {
        flex: 1;
        padding: 0.55rem;
        font-size: 0.82rem;
        font-weight: 600;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        background: #fff;
        color: #6b7280;
        cursor: pointer;
        transition: all 0.1s;
    }
    .pk-cancel:hover { background: #f3f4f6; }

    .pk-confirm {
        flex: 1.4;
        padding: 0.55rem;
        font-size: 0.82rem;
        font-weight: 700;
        border: none;
        border-radius: 8px;
        background: var(--pos-primary, #FF9F43);
        color: #fff;
        cursor: pointer;
        transition: all 0.1s;
    }
    .pk-confirm:hover { filter: brightness(0.95); }
    .pk-confirm:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ========== PAYMENT MODAL - Compact No-Scroll ========== */
    .pay-modal {
        background: #fff;
        border-radius: 16px;
        width: 380px;
        max-width: 94vw;
        max-height: 96vh;
        box-shadow: 0 20px 60px rgba(0,0,0,0.25);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        animation: price-modal-in 0.15s ease-out;
    }

    .pay-total-bar {
        background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
        text-align: center;
        padding: 0.6rem 1rem;
        border-bottom: 1px solid #a7f3d0;
    }

    .pay-total-amount {
        font-size: 1.75rem;
        font-weight: 800;
        color: #059669;
        letter-spacing: -0.5px;
    }

    .pay-types {
        display: flex;
        gap: 6px;
        padding: 0.5rem 0.75rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .pay-type {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: 0.4rem 0.25rem;
        border: 1.5px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        cursor: pointer;
        transition: all 0.12s;
        font-size: 0.68rem;
        font-weight: 600;
        color: #6b7280;
    }

    .pay-type span:first-child {
        font-size: 1.1rem;
        line-height: 1;
    }

    .pay-type:hover {
        border-color: var(--pos-primary);
        background: #fff7ed;
    }

    .pay-type.active {
        border-color: var(--pos-primary);
        background: #fff7ed;
        color: #c2410c;
    }

    .pay-type-disabled, .pay-type:disabled {
        opacity: 0.35;
        cursor: not-allowed !important;
        pointer-events: none;
        border-color: #d1d5db !important;
        background: #f3f4f6 !important;
    }

    .pay-content {
        padding: 0.5rem 0.75rem;
        flex: 1;
    }

    .pay-field {
        margin-bottom: 0.4rem;
    }

    .pay-field label {
        display: block;
        font-size: 0.72rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.2rem;
    }

    .pay-input {
        width: 100%;
        padding: 0.45rem 0.6rem;
        border: 1.5px solid #d1d5db;
        border-radius: 8px;
        font-size: 1.1rem;
        font-weight: 700;
        color: #1f2937;
        background: #fff;
        text-align: center;
    }

    .pay-input:focus {
        outline: none;
        border-color: var(--pos-primary);
        box-shadow: 0 0 0 2px rgba(255,159,67,0.15);
    }

    select.pay-input {
        text-align: left;
        font-size: 0.85rem;
        font-weight: 500;
    }

    .pay-quick-amounts {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
        margin: 0.4rem 0;
    }

    .pay-quick-amounts button {
        padding: 0.35rem;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        background: #f9fafb;
        font-size: 0.78rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.1s;
        color: #374151;
    }

    .pay-quick-amounts button:hover {
        background: var(--pos-primary);
        color: #fff;
        border-color: var(--pos-primary);
    }

    .pay-change {
        text-align: center;
        padding: 0.4rem 0.5rem;
        background: #ecfdf5;
        border: 1px solid #a7f3d0;
        border-radius: 8px;
        margin-top: 0.35rem;
    }

    .pay-change span {
        font-size: 0.7rem;
        color: #059669;
        display: block;
    }

    .pay-change strong {
        font-size: 1.25rem;
        color: #047857;
    }

    .pay-info-box {
        text-align: center;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        border: 1px solid;
        margin-top: 0.35rem;
    }

    .pay-info-box span { font-size: 0.75rem; display: block; }
    .pay-info-box strong { font-size: 1.15rem; display: block; margin-top: 0.1rem; }
    .pay-info-box svg { margin: 0 auto 0.2rem; }

    .pay-info-blue { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
    .pay-info-purple { background: #faf5ff; border-color: #e9d5ff; color: #7c3aed; }
    .pay-info-warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
    .pay-info-green { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
    .pay-info-red { background: #fef2f2; border-color: #fecaca; color: #dc2626; }

    .pay-split-row {
        display: flex;
        gap: 0.5rem;
    }

    .pay-split-row .pay-field { flex: 1; }

    .pay-split-summary div {
        display: flex;
        justify-content: space-between;
        font-size: 0.78rem;
        padding: 0.1rem 0;
    }

    .pay-split-total {
        font-weight: 700;
        border-top: 1px solid currentColor;
        padding-top: 0.2rem !important;
        margin-top: 0.15rem;
        opacity: 0.3;
    }

    .pay-split-remaining, .pay-split-change {
        text-align: center;
        font-size: 0.72rem;
        font-weight: 600;
        margin-top: 0.2rem;
    }

    .pay-footer {
        display: flex;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem 0.625rem;
        border-top: 1px solid #e2e8f0;
        background: #f9fafb;
    }

    .pay-cancel-btn {
        padding: 0.5rem 0.75rem;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        background: #fff;
        color: #6b7280;
        font-weight: 600;
        font-size: 0.82rem;
        cursor: pointer;
        transition: all 0.1s;
    }
    .pay-cancel-btn:hover { background: #f3f4f6; }

    .pay-confirm-btn {
        flex: 1;
        padding: 0.5rem 0.75rem;
        border: none;
        border-radius: 8px;
        background: var(--pos-primary, #FF9F43);
        color: #fff;
        font-weight: 700;
        font-size: 0.82rem;
        cursor: pointer;
        transition: all 0.1s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
    }
    .pay-confirm-btn:hover { filter: brightness(0.95); }
    .pay-confirm-btn:disabled { opacity: 0.5; cursor: not-allowed; }

    /* ========== FLOOR MAP STYLES ========== */
    .floor-tabs {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e5e7eb;
        flex-wrap: wrap;
    }
    
    .floor-tab {
        padding: 0.5rem 1rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.5rem;
        background: white;
        cursor: pointer;
        font-size: 0.875rem;
        font-weight: 500;
        color: #6b7280;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .floor-tab:hover {
        background: #f3f4f6;
        border-color: #d1d5db;
    }
    
    .floor-tab.active {
        background: #3b82f6;
        border-color: #3b82f6;
        color: white;
    }
    
    .floor-table-count {
        font-size: 0.75rem;
        opacity: 0.8;
    }
    
    .floor-map-wrapper {
        background: #f8fafc;
        border: 2px dashed #e2e8f0;
        border-radius: 0.75rem;
        padding: 1rem;
        min-height: 400px;
        overflow: auto;
    }
    
    .floor-map-container {
        position: relative;
        min-width: 800px;
        min-height: 500px;
        background: 
            linear-gradient(90deg, #e2e8f0 1px, transparent 1px),
            linear-gradient(#e2e8f0 1px, transparent 1px);
        background-size: 20px 20px;
        border-radius: 0.5rem;
    }
    
    .empty-state-centered {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        color: #9ca3af;
    }
    
    .empty-state-centered .empty-icon {
        width: 4rem;
        height: 4rem;
        margin: 0 auto 1rem;
        opacity: 0.5;
    }
    
    .empty-state-centered .empty-title {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.25rem;
    }
    
    .empty-state-centered .empty-subtitle {
        font-size: 0.875rem;
    }
    
    /* Table on Floor Map */
    .floor-table {
        position: absolute;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 3px solid transparent;
        overflow: hidden;
    }
    
    .floor-table:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
        z-index: 10;
    }
    
    .floor-table.selected {
        border-color: #3b82f6;
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3), 0 4px 16px rgba(0,0,0,0.15);
        z-index: 20;
    }
    
    /* Table Shapes */
    .floor-table.table-rectangle {
        border-radius: 0.5rem;
    }
    
    .floor-table.table-square {
        border-radius: 0.375rem;
    }
    
    .floor-table.table-round {
        border-radius: 50%;
    }
    
    .floor-table.table-oval {
        border-radius: 50%;
    }
    
    /* Table Status Colors */
    .floor-table.table-available {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        color: white;
    }
    
    .floor-table.table-occupied {
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        color: white;
    }
    
    .floor-table.table-reserved {
        background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
        color: white;
    }
    
    .floor-table.table-cleaning {
        background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
        color: white;
    }
    
    .floor-table.table-blocked {
        background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
        color: white;
    }
    
    /* Table Content */
    .table-content {
        text-align: center;
        padding: 0.5rem;
    }
    
    .floor-table .table-name {
        font-size: 0.875rem;
        font-weight: 700;
        margin-bottom: 0.125rem;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
    
    .floor-table .table-info {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        font-size: 0.75rem;
        opacity: 0.9;
    }
    
    .floor-table .table-amount {
        font-size: 0.75rem;
        font-weight: 600;
        margin-top: 0.25rem;
        background: rgba(255,255,255,0.2);
        padding: 0.125rem 0.5rem;
        border-radius: 1rem;
    }
    
    .floor-table .table-reservation {
        font-size: 0.625rem;
        margin-top: 0.25rem;
        opacity: 0.9;
    }
    
    .table-status-indicator {
        position: absolute;
        top: 0.25rem;
        right: 0.25rem;
        width: 0.5rem;
        height: 0.5rem;
        border-radius: 50%;
        background: white;
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }
    
    .floor-table.table-occupied .table-status-indicator {
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.5; }
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }
    
    /* Floor Map Footer */
    .floor-map-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e5e7eb;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .table-legend {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .legend-item {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.75rem;
        color: #6b7280;
    }
    
    .legend-dot {
        width: 0.75rem;
        height: 0.75rem;
        border-radius: 50%;
    }
    
    .legend-dot.available { background: #22c55e; }
    .legend-dot.occupied { background: #ef4444; }
    .legend-dot.reserved { background: #f59e0b; }
    .legend-dot.cleaning { background: #8b5cf6; }
    
    .selected-table-preview {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: #eff6ff;
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        border: 1px solid #bfdbfe;
    }
    
    .preview-label {
        font-size: 0.75rem;
        color: #6b7280;
    }
    
    .preview-table {
        font-weight: 600;
        color: #1e40af;
    }
    
    .preview-capacity {
        font-size: 0.75rem;
        color: #6b7280;
    }
    /* ========== END FLOOR MAP STYLES ========== */
    
    .modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .modal-header h3 {
        font-size: 1.125rem;
        font-weight: 600;
        color: #1f2937;
    }
    
    .modal-close {
        min-width: 44px;
        min-height: 44px;
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 0.6rem;
        border: none;
        background: #f3f4f6;
        font-size: 1.35rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .modal-close:hover {
        background: #e5e7eb;
    }
    
    .modal-body {
        padding: 1.5rem;
        overflow-y: auto;
        max-height: 60vh;
        color: #4a5568;
    }
    
    .modal-body label {
        color: #374151;
    }
    
    .modal-body p {
        color: #6b7280;
    }
    
    .modal-footer {
        display: flex;
        gap: 0.75rem;
        justify-content: flex-end;
        padding: 1rem 1.5rem;
        border-top: 1px solid #e5e7eb;
        background: #f9fafb;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group label {
        display: block;
        font-size: 0.875rem;
        font-weight: 500;
        color: #374151 !important;
        margin-bottom: 0.5rem;
    }
    
    .form-input {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        font-size: 1rem;
        color: #1f2937;
        background-color: white;
    }
    
    .form-input:focus {
        outline: none;
        border-color: var(--pos-primary);
        box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.15);
    }
    
    .form-input::placeholder {
        color: #9ca3af;
    }
    
    .btn-cancel {
        padding: 0.5rem 1rem;
        border: 1px solid #d1d5db;
        border-radius: 0.5rem;
        background: white;
        color: #374151;
        font-weight: 500;
        cursor: pointer;
    }
    
    .btn-cancel:hover {
        background: #f3f4f6;
    }
    
    .btn-primary {
        padding: 0.5rem 1rem;
        border: none;
        border-radius: 0.5rem;
        background: var(--pos-primary);
        color: white;
        font-weight: 500;
        cursor: pointer;
    }
    
    .btn-primary:hover:not(:disabled) {
        background: var(--pos-primary-hover);
    }
    
    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
        border-radius: 0.375rem;
    }
    
    .btn-danger {
        background: #ef4444;
        color: white;
        border: none;
        cursor: pointer;
    }
    
    .btn-danger:hover {
        background: #dc2626;
    }
    
    .held-order-card {
        display: flex;
        align-items: center;
        padding: 1rem;
        background: #f9fafb;
        border-radius: 0.5rem;
        border: 1px solid #e5e7eb;
        color: #374151;
    }
    
    .held-order-card .font-medium {
        color: #1f2937;
    }
    
    .held-order-card .text-gray-600,
    .held-order-card .text-gray-500 {
        color: #6b7280;
    }
    
    /* Payment Styles */
    .payment-chip {
        padding: 0.25rem 0.5rem;
        border-radius: 9999px;
        border: 1px solid #e5e7eb;
        font-size: 0.68rem;
        cursor: pointer;
        transition: all 0.15s;
        background: white;
        color: #4a5568;
    }
    
    .payment-chip:hover {
        border-color: var(--pos-primary);
        color: var(--pos-primary);
    }
    
    .payment-chip.selected {
        background: var(--pos-primary);
        color: white;
        border-color: var(--pos-primary);
    }
    
    .payment-type-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        padding: 0.75rem;
        border: 2px solid #e5e7eb;
        border-radius: 0.5rem;
        background: white;
        cursor: pointer;
        transition: all 0.2s;
        font-size: 0.75rem;
        font-weight: 500;
        color: #4a5568;
    }
    
    .payment-type-btn:hover {
        border-color: var(--pos-primary);
        background: #fff7ed;
        color: #c2410c;
    }
    
    .payment-type-btn.selected {
        border-color: var(--pos-primary);
        background: #fff7ed;
        color: #c2410c;
    }
    
    .quick-amount-btn {
        padding: 0.5rem;
        border: 1px solid #e5e7eb;
        border-radius: 0.375rem;
        background: #f9fafb;
        font-size: 0.875rem;
        cursor: pointer;
        transition: all 0.2s;
    }
    
    .quick-amount-btn:hover {
        background: var(--pos-primary);
        color: white;
        border-color: var(--pos-primary);
    }
    
    .payment-section {
        padding: 1rem;
        background: #f9fafb;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Quick Keys Styles - overridden by app.css, kept as fallback */
    
    /* Kitchen Button */
    .btn-kitchen {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        padding: 0.45rem 0.6rem;
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        font-size: 0.7rem;
        cursor: pointer;
        transition: all 0.15s;
    }
    
    .btn-kitchen:hover:not(:disabled) {
        background: linear-gradient(135deg, #d97706, #b45309);
        transform: translateY(-1px);
        box-shadow: 0 4px 6px rgba(0,0,0,0.15);
    }
    
    .btn-kitchen:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Transfer & Reserve Buttons */
    .btn-pos-transfer, .btn-pos-reserve {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        border: none;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

    .btn-pos-transfer {
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        color: white;
    }

    .btn-pos-transfer:hover {
        background: linear-gradient(135deg, #7c3aed, #6d28d9);
        transform: translateY(-1px);
    }

    .btn-pos-reserve {
        background: linear-gradient(135deg, #06b6d4, #0891b2);
        color: white;
    }

    .btn-pos-reserve:hover {
        background: linear-gradient(135deg, #0891b2, #0e7490);
        transform: translateY(-1px);
    }

    .btn-pos-kitchen {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: linear-gradient(135deg, #f59e0b, #d97706);
        color: white;
        border: none;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
    }

    .btn-pos-kitchen:hover {
        background: linear-gradient(135deg, #d97706, #b45309);
        transform: translateY(-1px);
    }

    .btn-pos-apporders {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        background: linear-gradient(135deg, #8b5cf6, #7c3aed);
        color: white;
        border: none;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
    }

    .btn-pos-apporders:hover {
        background: linear-gradient(135deg, #7c3aed, #6d28d9);
        transform: translateY(-1px);
    }

    .btn-pos-apporders.has-pending {
        animation: pulse-glow 2s ease-in-out infinite;
    }

    .app-order-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 20px;
        height: 20px;
        padding: 0 5px;
        background: #ef4444;
        color: white;
        border-radius: 10px;
        font-size: 0.7rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 4px rgba(239,68,68,0.4);
    }

    @keyframes pulse-glow {
        0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
        50% { box-shadow: 0 0 0 8px rgba(139, 92, 246, 0); }
    }

    /* Transfer/Reserve Modal Styles */
    .transfer-info, .reservation-convert-info {
        background: #f0f9ff;
        border: 1px solid #bae6fd;
        border-radius: 0.5rem;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .transfer-info p, .reservation-convert-info p {
        margin: 0.25rem 0;
        color: #0369a1;
    }

    .transfer-table-grid, .reserve-table-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
        max-height: 200px;
        overflow-y: auto;
        padding: 0.5rem;
        background: #f9fafb;
        border-radius: 0.5rem;
        border: 1px solid #e5e7eb;
    }

    .transfer-table-option, .reserve-table-option {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0.75rem;
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 0.5rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .transfer-table-option:hover, .reserve-table-option:hover {
        border-color: #3b82f6;
        background: #eff6ff;
    }

    .transfer-table-option.selected, .reserve-table-option.selected {
        border-color: #3b82f6;
    }

    /* Linked Customer Banner */
    .linked-customer-banner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.75rem 1rem;
        background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
        border: 1px solid #93c5fd;
        border-radius: 0.5rem;
        margin-bottom: 1rem;
    }

    .linked-customer-info {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #1e40af;
    }

    .btn-clear-link {
        padding: 0.25rem;
        background: transparent;
        border: none;
        color: #6b7280;
        cursor: pointer;
        border-radius: 0.25rem;
        transition: all 0.2s;
    }

    .btn-clear-link:hover {
        background: #fee2e2;
        color: #dc2626;
    }

    /* Input with Search Button */
    .input-with-button {
        display: flex;
        gap: 0.5rem;
    }

    .input-with-button .form-input {
        flex: 1;
    }

    .btn-search-customer {
        padding: 0.5rem 0.75rem;
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        border-radius: 0.375rem;
        color: #374151;
        cursor: pointer;
        transition: all 0.2s;
    }

    .btn-search-customer:hover {
        background: #e5e7eb;
        border-color: #9ca3af;
    }

    .flex-2 {
        flex: 2;
        background: #dbeafe;
    }

    .transfer-table-option .table-name, .reserve-table-option .table-name {
        font-weight: 600;
        color: #1f2937;
    }

    .transfer-table-option .table-capacity, .reserve-table-option .table-capacity {
        font-size: 0.75rem;
        color: #6b7280;
    }

    .no-tables-message {
        text-align: center;
        color: #9ca3af;
        padding: 1rem;
        font-style: italic;
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    /* Edit price button in cart */
    .edit-price-btn {
        color: #6366f1;
        opacity: 0.7;
        transition: opacity 0.15s;
    }
    .edit-price-btn:hover {
        opacity: 1;
    }

    /* UoM selector/label in cart */
    .uom-selector {
        display: inline-block;
        margin-top: 2px;
        padding: 1px 4px;
        font-size: 0.65rem;
        border: 1px solid var(--pos-border, #e5e7eb);
        border-radius: 4px;
        background: #f9fafb;
        color: #374151;
        cursor: pointer;
        max-width: 100px;
    }
    .uom-label {
        display: inline-block;
        margin-top: 2px;
        font-size: 0.65rem;
        color: #6b7280;
    }

    /* Cart Item Kitchen Status */
    .cart-item-status {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.625rem;
        padding: 0.125rem 0.375rem;
        border-radius: 1rem;
        margin-top: 0.25rem;
    }

    .cart-item-status.status-pending {
        background: #fef3c7;
        color: #92400e;
    }

    .cart-item-status.status-sent {
        background: #dbeafe;
        color: #1e40af;
    }

    .cart-item-status.status-preparing {
        background: #fce7f3;
        color: #9d174d;
    }

    .cart-item-status.status-ready {
        background: #d1fae5;
        color: #065f46;
    }

    .cart-item-locked {
        opacity: 0.7;
        background: #f3f4f6 !important;
    }

    .cart-item-locked .cart-item-actions {
        display: none;
    }

    /* ── Pickup Modal ─────────────────────────────────── */
    .pickup-modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .pickup-modal {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
        width: 92%;
        max-width: 800px;
        max-height: 88vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    .pickup-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 24px;
        border-bottom: 1px solid #e5e7eb;
        background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    }
    .pickup-modal-header h3 {
        margin: 0;
        font-size: 1.15rem;
        font-weight: 700;
        color: #065f46;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .pickup-modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 16px 24px;
    }
    .pickup-order-card {
        border: 1.5px solid #e5e7eb;
        border-radius: 12px;
        padding: 16px;
        margin-bottom: 12px;
        cursor: pointer;
        transition: all 0.15s ease;
        background: #fff;
    }
    .pickup-order-card:hover {
        border-color: #10b981;
        background: #f0fdf4;
    }
    .pickup-order-card.selected {
        border-color: #10b981;
        background: #ecfdf5;
        box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
    }
    .pickup-order-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .pickup-order-info {
        flex: 1;
    }
    .pickup-order-number {
        font-weight: 700;
        font-size: 1rem;
        color: #111827;
    }
    .pickup-order-customer {
        font-size: 0.85rem;
        color: #6b7280;
        margin-top: 2px;
    }
    .pickup-order-items-preview {
        font-size: 0.8rem;
        color: #9ca3af;
        margin-top: 4px;
    }
    .pickup-order-total {
        font-weight: 700;
        font-size: 1.1rem;
        color: #059669;
        white-space: nowrap;
    }
    .pickup-order-time {
        font-size: 0.75rem;
        color: #9ca3af;
        white-space: nowrap;
    }
    .pickup-detail-panel {
        border-top: 1px solid #e5e7eb;
        padding-top: 16px;
        margin-top: 8px;
    }
    .pickup-detail-items {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .pickup-detail-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 12px;
        background: #f9fafb;
        border-radius: 8px;
        font-size: 0.88rem;
    }
    .pickup-detail-item-name {
        font-weight: 500;
        color: #1f2937;
    }
    .pickup-detail-item-qty {
        color: #6b7280;
        font-size: 0.82rem;
    }
    .pickup-detail-item-price {
        font-weight: 600;
        color: #374151;
    }
    .pickup-detail-totals {
        margin-top: 12px;
        padding: 12px;
        background: #f0fdf4;
        border-radius: 10px;
    }
    .pickup-detail-total-row {
        display: flex;
        justify-content: space-between;
        padding: 3px 0;
        font-size: 0.88rem;
        color: #374151;
    }
    .pickup-detail-total-row.grand {
        font-weight: 700;
        font-size: 1.05rem;
        color: #065f46;
        border-top: 1px solid #a7f3d0;
        padding-top: 8px;
        margin-top: 4px;
    }
    .pickup-modal-footer {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        padding: 14px 24px;
        border-top: 1px solid #e5e7eb;
        background: #fafafa;
    }
    .btn-pickup-close {
        padding: 10px 20px;
        border-radius: 10px;
        border: 1px solid #d1d5db;
        background: #fff;
        color: #374151;
        font-weight: 600;
        font-size: 0.88rem;
        cursor: pointer;
        transition: all 0.15s;
    }
    .btn-pickup-close:hover { background: #f3f4f6; }
    .btn-pickup-complete {
        padding: 10px 24px;
        border-radius: 10px;
        border: none;
        background: linear-gradient(135deg, #059669, #10b981);
        color: #fff;
        font-weight: 700;
        font-size: 0.92rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.15s;
    }
    .btn-pickup-complete:hover { background: linear-gradient(135deg, #047857, #059669); }
    .btn-pickup-complete:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
    .pickup-empty {
        text-align: center;
        padding: 40px 20px;
        color: #9ca3af;
    }
    .pickup-empty svg { margin: 0 auto 12px; }
    .pickup-spinner {
        text-align: center;
        padding: 30px;
        color: #6b7280;
    }

    /* Pickup button style */
    .btn-pos-pickup {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        border-radius: 8px;
        border: 1px solid #a7f3d0;
        background: #ecfdf5;
        color: #065f46;
        font-size: 0.82rem;
        font-weight: 600;
        cursor: pointer;
        position: relative;
        transition: all 0.15s;
    }
    .btn-pos-pickup:hover { background: #d1fae5; }
    .btn-pos-pickup.has-ready {
        background: #059669;
        color: #fff;
        border-color: #059669;
        animation: pulse-pickup 2s infinite;
    }
    @keyframes pulse-pickup {
        0%, 100% { box-shadow: 0 0 0 0 rgba(5,150,105,0.4); }
        50% { box-shadow: 0 0 0 6px rgba(5,150,105,0); }
    }

    /* ========== TOUCH / TABLET OPTIMIZATIONS ========== */
    .modal-content button,
    .modal-content input,
    .modal-content select,
    .modal-content label {
        touch-action: manipulation;
    }

    .modal-content input[type="number"],
    .modal-content input[type="text"],
    .modal-content input[type="password"],
    .modal-content select {
        font-size: 16px;
    }

    @media (hover: none) and (pointer: coarse) {
        .modal-content input[type="checkbox"] {
            width: 22px;
            height: 22px;
        }
    }
