/* Employee Orders Dashboard Styles */
.emp-payment-container {
    height: 100vh;
    background: #FDF8EE;
    font-family: 'Poppins', sans-serif;
    padding: 15px;
    box-sizing: border-box;
}

.emp-payment-container .EMPleftmenubar {
    height: calc(100vh - 30px);
    margin: 0;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

.emp-payment-main {
    padding: 20px;
    margin: 15px;
    margin-left: calc(15% + 30px);
    overflow-y: auto;
    height: calc(100vh - 30px);
    box-sizing: border-box;
}

.emp-payment-header {
    background: transparent;
    padding: 0;
    margin-bottom: 30px;
}

.emp-payment-header h1 {
    font-size: 3rem;
    font-weight: 900;
    color: #6F4F37;
    margin: 0 0 20px 0;
    text-align: left;
}


/* Summary Cards */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: #6F4F37;
    padding: 25px;
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(111, 79, 55, 0.2);
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}

.card-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.card-value.paid {
    color: white;
}

.card-value.pending {
    color: white;
}

.card-value.cancelled {
    color: white;
}

.card-value.count {
    color: white;
}

/* Search and Filter Section */
.search-filter-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.search-container {
    display: flex;
    flex: 1;
    max-width: 500px;
    gap: 10px;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #6F4F37;
    box-shadow: 0 0 0 3px rgba(111, 79, 55, 0.1);
}

/* QR Scan Button */
.qr-scan-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #6F4F37;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(111, 79, 55, 0.3);
    white-space: nowrap;
}

.qr-scan-btn:hover {
    background: #5a3d2a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(111, 79, 55, 0.4);
}

.qr-scan-btn i {
    font-size: 16px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: #6F4F37;
    color: #6F4F37;
}

.filter-btn.active {
    background: #6F4F37;
    color: white;
    border-color: #6F4F37;
}

/* Payment Table */
.payment-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Custom scrollbar for table container */
.payment-table-container::-webkit-scrollbar {
    width: 8px;
}

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

.payment-table-container::-webkit-scrollbar-thumb {
    background: #6F4F37;
    border-radius: 4px;
}

.payment-table-container::-webkit-scrollbar-thumb:hover {
    background: #5a3f2a;
}

.payment-table {
    width: 100%;
    border-collapse: collapse;
}

.payment-table thead {
    background: #6F4F37;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.payment-table thead :nth-child(1) {
    width: 150px;
}
.payment-table thead :nth-child(2) {
    width: 100px;
}
.payment-table thead :nth-child(3) {
    width: 100px;
}
.payment-table thead :nth-child(4) {
    width: 200px;
}
.payment-table thead :nth-child(5) {
    width: 100px;
}
.payment-table thead :nth-child(6) {
    width: 200px;
}
.payment-table thead :nth-child(7) {
    width: 300px;
}

.payment-table th {
    padding: 15px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.payment-table tbody tr:hover {
    background: #f8f9fa;
}

.payment-table td {
    padding: 15px 12px;
    font-size: 0.95rem;
    text-align: center;
}

.payment-id {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #6F4F37;
}

.payment-id i {
    color: #ffc107;
    font-size: 1.1rem;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 175px;
    text-align: center;
    letter-spacing: 0.5px;
}

.status-badge.order-confirmed {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.preparing {
    background: #fff3cd;
    color: #856404;
}

.status-badge.almost-done {
    background: #fff8e1;
    color: #f57c00;
}

.status-badge.ready-for-pickup {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge.picked-up {
    background: #d4edda;
    color: #155724;
}

.status-badge.cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* Fallback for any status not specifically styled */
.status-badge:not(.order-confirmed):not(.preparing):not(.almost-done):not(.ready-for-pickup):not(.picked-up):not(.cancelled) {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 0;
    min-height: 52px;
}

.mark-paid-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.mark-paid-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

.mark-cancelled-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mark-cancelled-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.next-action-btn {
    background: #6F4F37;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.next-action-btn:hover {
    background: #5a3d2a;
    transform: translateY(-1px);
}

.proceed-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.proceed-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.view-receipt-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-receipt-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.update-status-btn {
    background: #6F4F37;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.update-status-btn:hover {
    background: #5a3f2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.update-status-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.pagination-info {
    color: #666;
    font-size: 0.9rem;
}

.pagination-buttons {
    display: flex;
    gap: 8px;
}

.pagination-btn {
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: #6F4F37;
    color: #6F4F37;
}

.pagination-btn.active {
    background: #6F4F37;
    color: white;
    border-color: #6F4F37;
}

.pagination-btn.disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    border-color: #e9ecef;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .emp-payment-main {
        margin-left: 0;
        padding: 15px;
    }
    
    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-filter-section {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .search-container {
        max-width: none;
    }
    
    .filter-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .emp-payment-header h1 {
        font-size: 2rem;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-table-container {
        overflow-x: auto;
    }
    
    .payment-table {
        min-width: 600px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 5px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .emp-payment-header h1 {
        font-size: 1.5rem;
    }
    
    .tab-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .summary-card {
        padding: 20px;
    }
    
    .card-value {
        font-size: 1.5rem;
    }
    
    .search-input {
        font-size: 0.9rem;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .payment-table th,
    .payment-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .mark-paid-btn,
    .view-receipt-btn,
    .update-status-btn {
        padding: 6px 12px;
        font-size: 0.7rem;
        min-width: 100px;
        height: 32px;
    }
}

/* Receipt Modal */
.receipt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.receipt-modal {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: receiptSlideIn 0.3s ease-out;
}

@keyframes receiptSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.receipt-header {
    background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-receipt-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 3px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

.receipt-content {
    padding: 25px;
}

.receipt-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.receipt-info h3 {
    color: #6F4F37;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.receipt-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.receipt-items {
    margin-bottom: 20px;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.receipt-totals {
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.receipt-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1rem;
}

.receipt-total-line.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #6F4F37;
    border-top: 2px solid #6F4F37;
    padding-top: 8px;
    margin-top: 8px;
}

.receipt-total-line.discount {
    color: #28a745;
    font-weight: 500;
}

.receipt-total-line.discount span:last-child {
    color: #28a745;
    font-weight: 600;
}

.receipt-customer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.receipt-customer p {
    margin: 5px 0;
    color: #333;
    font-weight: 500;
}

.receipt-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.receipt-footer p {
    margin: 5px 0;
    color: #666;
    font-style: italic;
}

.receipt-actions {
    display: flex;
    gap: 15px;
    padding: 20px 25px 25px 25px;
    justify-content: center;
}

.print-receipt-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.print-receipt-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.close-receipt-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-receipt-btn:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .emp-payment-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .emp-payment-main {
        margin-left: 0;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .emp-payment-header h1 {
        font-size: 2rem;
    }
    
    .emp-payment-header p {
        font-size: 1rem;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .payment-method-btn {
        min-width: unset;
    }
    
    .payment-actions {
        flex-direction: column;
    }
    
    .receipt-modal {
        margin: 10px;
        max-height: 90vh;
    }
    
    .receipt-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .emp-payment-header {
        padding: 20px;
    }
    
    .emp-payment-header h1 {
        font-size: 1.5rem;
    }
    
    .order-summary-section,
    .customer-info-section,
    .payment-method-section,
    .payment-amount-section {
        padding: 20px;
    }
    
    .transaction-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .transaction-details {
        align-items: flex-start;
    }
}

/* Status Update Modal */
.status-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.status-modal {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.status-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #6F4F37;
    color: white;
    border-radius: 12px 12px 0 0;
}

.status-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-status-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-status-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.status-modal-content {
    padding: 20px;
}

.order-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-info h3 {
    margin: 0 0 10px 0;
    color: #6F4F37;
    font-size: 1.2rem;
}

.order-info p {
    margin: 5px 0;
    color: #666;
}

.status-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.status-select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.2s;
}

.status-select:focus {
    outline: none;
    border-color: #6F4F37;
}

.status-notes {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s;
}

.status-notes:focus {
    outline: none;
    border-color: #6F4F37;
}

.status-modal-actions {
    display: flex;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* Modal Action Buttons - Same size for both */
.update-status-btn {
    flex: 1;
    padding: 12px 20px;
    background: #6F4F37;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.update-status-btn:hover:not(:disabled) {
    background: #5a3f2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.update-status-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cancel-status-btn {
    flex: 1;
    padding: 12px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-status-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Past Unresolved Orders Styling */
.past-unresolved-row {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107;
}

.past-unresolved-row:hover {
    background-color: #ffeaa7 !important;
}

.past-unresolved-row .payment-id {
    color: #856404;
    font-weight: 600;
}

.past-unresolved-row .payment-id i {
    color: #ffc107;
    margin-right: 5px;
}

/* Warning Summary Card */
.summary-card.warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
}

.summary-card.warning .card-title {
    color: #856404;
    font-weight: 700;
}

.summary-card.warning .card-value.warning {
    color: #856404;
    font-weight: 800;
    font-size: 1.8rem;
}

/* Print View Styles */
.OPprint-view {
  display: none;
}

@media print {
  /* Hide everything except print view */
  body * {
    visibility: hidden;
  }
  
  .OPprint-view,
  .OPprint-view * {
    visibility: visible;
  }
  
  .OPprint-view {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: block !important;
  }
}

.OPprint-content {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.OPprint-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #6F4F37;
}

.OPprint-header h1 {
  font-size: 24px;
  font-weight: bold;
  color: #6F4F37;
  margin: 0 0 5px 0;
}

.OPprint-header p {
  font-size: 14px;
  color: #8B7355;
  margin: 0;
}

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

.OPprint-section h2 {
  font-size: 18px;
  font-weight: bold;
  color: #6F4F37;
  margin: 0 0 15px 0;
}

.OPprint-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0 0 10px 0;
}

.OPprint-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.OPprint-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.OPprint-label {
  font-weight: 600;
  color: #6F4F37;
  font-size: 14px;
}

.OPprint-value {
  color: #333;
  font-size: 14px;
}

.OPprint-status {
  background: #d4edda;
  color: #155724;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* Print status specific colors */
.OPprint-status.paid {
  background: #d4edda;
  color: #155724;
}

.OPprint-status.pending {
  background: #fff3cd;
  color: #856404;
}

.OPprint-status.cancelled {
  background: #f8d7da;
  color: #721c24;
}

.OPprint-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.OPprint-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.OPprint-item:last-child {
  border-bottom: none;
}

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

.OPprint-item-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.OPprint-item-details {
  font-size: 12px;
  color: #666;
}

.OPprint-item-total {
  font-weight: 600;
  color: #6F4F37;
  font-size: 14px;
}

.OPprint-total {
  margin: 20px 0;
  padding: 15px 0;
  border-top: 2px solid #6F4F37;
  border-bottom: 2px solid #6F4F37;
}

.OPprint-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.OPprint-total-label {
  font-size: 16px;
  font-weight: bold;
  color: #6F4F37;
}

.OPprint-total-value {
  font-size: 18px;
  font-weight: bold;
  color: #6F4F37;
}

.OPprint-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.OPprint-footer p {
  margin: 5px 0;
  color: #666;
  font-size: 14px;
}

/* QR Result Modal */
.qr-result-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: 'Poppins', sans-serif;
}

.qr-result-modal {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

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

.qr-result-header {
    background: linear-gradient(135deg, #6F4F37 0%, #8B5A3C 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.qr-result-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.qr-result-header i {
    font-size: 1.8rem;
}

.close-qr-result-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.close-qr-result-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.qr-result-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

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

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

.qr-info-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-info-value {
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.qr-info-value.amount {
    color: #6F4F37;
    font-size: 1.1rem;
}

.qr-info-value.status-badge {
    background: #e8f5e8;
    color: #2d5a2d;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

.qr-result-actions {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.qr-update-status-btn,
.qr-view-receipt-btn,
.qr-close-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
}

.qr-update-status-btn {
    background: #6F4F37;
    color: white;
}

.qr-update-status-btn:hover {
    background: #5a3d2a;
    transform: translateY(-2px);
}

.qr-view-receipt-btn {
    background: #28a745;
    color: white;
}

.qr-view-receipt-btn:hover {
    background: #218838;
    transform: translateY(-2px);
}

.qr-close-btn {
    background: #6c757d;
    color: white;
}

.qr-close-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Extra Items Styles */
.receipt-item-extras {
    margin-top: 8px;
    padding-left: 15px;
    border-left: 2px solid #6F4F37;
}

.receipt-extras-label {
    font-size: 0.85rem;
    color: #6F4F37;
    font-weight: 600;
    margin-bottom: 4px;
}

.receipt-extra-detail {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
}

.receipt-extra-request {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    margin-top: 4px;
}

.OPprint-item-extras {
    margin-top: 4px;
    padding-left: 10px;
    border-left: 1px solid #6F4F37;
}

.OPprint-extras-label {
    font-size: 0.75rem;
    color: #6F4F37;
    font-weight: 600;
    margin-bottom: 2px;
}

.OPprint-extra-detail {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 1px;
    display: block;
}

.OPprint-extra-request {
    font-size: 0.7rem;
    color: #666;
    font-style: italic;
    margin-top: 2px;
}
