/* 弹窗样式 */
.day-records-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.popup-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.popup-header h6 {
    margin: 0;
    font-weight: 600;
    color: #333;
}

.btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.btn-close:hover {
    background: #e9ecef;
    color: #333;
}

.popup-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.record-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #28a745;
}

.record-product {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 5px;
}

.record-amount {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 8px;
}

.record-details {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
}

.record-notes {
    color: #888;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 10px;
}

.record-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.record-actions .btn {
    font-size: 12px;
    padding: 4px 8px;
}

.popup-total {
    background: #e9ecef;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    text-align: center;
    margin-top: 10px;
}

.popup-actions {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.popup-actions .btn {
    min-width: 80px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .popup-content {
        max-width: 95vw;
        max-height: 85vh;
        margin: 10px;
    }
    
    .popup-header {
        padding: 12px 15px;
    }
    
    .popup-body {
        padding: 15px;
    }
    
    .popup-actions {
        padding: 12px 15px;
        flex-direction: column;
    }
    
    .popup-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .record-actions {
        flex-direction: column;
    }
    
    .record-actions .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}