.face-recognition-sidebar {
    position: absolute;
    top: 65px;
    right: 0;
    bottom: 0;
    width: 300px;
    background: white;
    border-left: 1px solid #ccc;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 10px;
    background: #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.camera-container video {
    background: #000;
    border-radius: 4px;
}

.match-list {
    list-style: none;
    padding: 0;
}

.match-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.match-item:hover {
    background: #f9f9f9;
}

.match-info {
    display: flex;
    justify-content: space-between;
}

.customer-details {
    margin-top: 20px;
    border-top: 2px solid #eee;
    padding-top: 10px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}

.face-recognition-sidebar .control-button {
    cursor: pointer;
}

.face-recognition-sidebar.hidden {
    display: none;
}

/* Add padding to ProductScreen to avoid sidebar overlap */
.pos .product-screen {
    padding-right: 305px;
}
/* Order 
Details Styling */
.last-orders {
    margin-top: 15px;
}

.last-orders h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #d0d0d0;
}

.order-number {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.order-date {
    font-size: 11px;
    color: #7f8c8d;
}

.order-details {
    margin-bottom: 8px;
}

.order-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 12px;
}

.order-row .label {
    color: #666;
    font-weight: 500;
}

.order-row .value {
    color: #333;
    font-weight: 600;
}

.order-row .value.status {
    text-transform: capitalize;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
}

.order-row .value.status.paid {
    background: #d4edda;
    color: #155724;
}

.order-row .value.status.done {
    background: #d4edda;
    color: #155724;
}

.order-row .value.status.invoiced {
    background: #cce5ff;
    color: #004085;
}

.order-products {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #d0d0d0;
}

.products-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-item {
    display: flex;
    align-items: center;
    padding: 4px 0;
    font-size: 11px;
    gap: 6px;
}

.product-qty {
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.product-name {
    flex: 1;
    color: #333;
}

.product-price {
    color: #28a745;
    font-weight: 600;
}

.no-orders {
    color: #999;
    font-style: italic;
    font-size: 12px;
    text-align: center;
    padding: 20px 0;
}

/* Top Products Styling */
.top-products {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.top-products h5 {
    margin-bottom: 10px;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.top-products ul {
    list-style: none;
    padding: 0;
}

.top-products li {
    padding: 6px 8px;
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    margin-bottom: 6px;
    font-size: 12px;
    border-radius: 3px;
}
